CL Command Reference - SNDNETSPLF
CL Command List > SNDNETSPLF Reference
Description:
The Send Network Spooled File (SNDNETSPLF) command sends a spooled file to another user on the local system or on a remote system on the SNADS network. The file is placed on the output queue that is specified in the user profile of the user to whom the spooled file was sent.
When the file arrives at the destination system, a message is sent to both the recipient and sending user notifying them of the arrival of the spooled file
This command does not perform any CCSID translation on the contents of the file. However, the user ID and address of both the recipient and the originator are translated from the current job CCSID to the multinational character set 697/500.
Restrictions:
1. The user must be enrolled in the system distribution directory to run this command. The sender must have read, add, and delete authority to the receiving output queue when sending to user on the same system.
2. One of the following must be true:
. The requester is the creator of the file.
. The requester has *READ authority to the output queue on which the file resides, and DSPDTA(*YES) was specified on the CRTOUTQ command.
. The requester has *SPLCTL special authority.
. The requester has *JOBCTL special authority, and the output queue on which the file resides has OPRCTL(*YES) specified on the CRTOUTQ command.
. The output queue has DSPDTA(*YES) specified on the CRTOUTQ command.
. The requester has owner authority to the output queue on which the file resides and the queue had AUTCHK(*OWNER) and DSPDTA(*YES) or DSPDTA(*NO) specified on the CRTOUTQ command.
. The requester has *READ, *ADD, and *DELETE authority to the output queue on which the file resides and the queue has AUTCHK(*DTAAUT) and DSPDTA(*YES) or DSPDTA(*NO) specified on the CRTOUTQ command.
3. DTAFMT(*RCDDATA) must be used when sending a spooled file to a release prior to Version 1 Release 3 Modification 0 (V1R3).
Examples:
Example 1: Sending a Spooled File
SNDNETSPLF FILE(QPRINT) TOUSRID((JDE SYS1))
JOB(142857/PAPER/PRINT) SPLNBR(*LAST)
DTAFMT(*ALLDATA)
This command sends the last (most recently created) copy of spooled file QPRINT from job 142857/PAPER/PRINT to the user with a user ID of JDE SYS1. All spooled file functions will be sent.
Example 2: Sending Print Attributes
SNDNETSPLF DTAFMT(*RCDDATA)
This command sends a limited set of print attributes.
Example 3: Sending All Print Attributes
SNDNETSPLF DTAFMT(*ALLDATA)
This command sends all print attributes. *ALLDATA is only valid when it is sent from one iSeries system to another iSeries system.