Command reference / spool
SNDTCPSPLF
Send TCP/IP Spooled File
Sends a spooled file to a printer queue on a remote system with TCP/IP, using the LPR/LPD protocol. The remote system is named directly or by internet address, and the printer queue is the name that system's LPD uses. A file being written cannot be sent, and an inactive TCP/IP stack fails the send.
Allowed environments: *ALL.
Positional parameters: 3.
Parameters
RMTSYS
Remote system
Specifies the remote system that receives the spooled file, by host name, DNS name or internet address. This is a required parameter.
Suggested / special values:
*INTNETADR
*INTNETADR- The remote system is named by the INTNETADR parameter.
PRTQ
Printer queue
Specifies the name of the printer queue on the remote system, as its LPD server knows it. This is a required parameter.
FILE
Spooled file
Specifies the spooled file to send. This is a required parameter.
JOB
Job name
Specifies the job that created the spooled file.
Suggested / special values:
*
*- The job that issued the command produced the spooled file.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Job name
Job name
User
User
Number
Number
SPLNBR
Spooled file number
Specifies the number of the spooled file that has the specified file name.
Suggested / special values:
*ONLY, *LAST, *ANY
*ONLY- Only one spooled file in the job has the specified file name.
*LAST- The highest-numbered spooled file with the specified file name is sent.
*ANY- The spooled file number is not used to select the file.
JOBSYSNAME
Job system name
Specifies the system where the job that created the spooled file ran.
Suggested / special values:
*ONLY, *CURRENT, *ANY
*ONLY- There is one spooled file matching the other identifying values.
*CURRENT- The spooled file created on the current system is sent.
*ANY- The job system name is not used to select the file.
CRTDATE
Spooled file created
Specifies the date and time the spooled file was created, after the other identifying values are matched.
Suggested / special values:
*ONLY, *LAST
*ONLY- There is one spooled file matching the other identifying values.
*LAST- The spooled file with the latest creation date and time is sent.
Elements in order
Creation date
Creation date
Creation time
Creation time
Suggested / special values:
*ONLY, *LAST
DESTTYP
Destination type
Specifies the type of the remote destination, which decides how the data is formatted.
Allowed values:
*AS400, *PSF2, *OTHER
*AS400- The destination is an IBM i system; its host print transform is used.
*PSF2- The destination is a PSF/2 print server.
*OTHER- The destination is another type of system, which receives the data as it is.
TRANSFORM
Transform SCS to ASCII
Specifies whether the host print transform converts the SCS data stream to ASCII for the remote printer.
Allowed values:
*YES, *NO
*YES- The data is transformed with the manufacturer type and model and workstation customizing object.
*NO- The data is sent without host print transform.
USRDTATFM
User data transform
Specifies a user data transform program that formats the data instead of the host print transform. Not allowed with TRANSFORM(*YES).
Suggested / special values:
*NONE
*NONE- No user data transform is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)
User data transform
User data transform
Library
Library
Suggested / special values:
*LIBL, *CURLIB
MFRTYPMDL
Manufacturer type and model
Specifies the manufacturer, type and model of the remote printer, which selects the host print transform parameters.
Suggested / special values:
*NONE, *WSCST, *IBM42011, *IBM42021, *IBM42023, *IBM4212990, *IBM4212991, *IBM4212999, *IBM4312, *IBM5327, *IBM5400, *IBM5400-10, *IBM5400-20, *IBM5577
*NONE- No manufacturer type and model is used.
*WSCST- The workstation customizing object given on WSCST supplies the printer definition.
INTNETADR
Internet address
Specifies the internet address of the remote system in dotted decimal form. Used when RMTSYS(*INTNETADR) is given.
WSCST
Workstation customizing object
Specifies the workstation customizing object that customizes the host print transform for the remote printer.
Suggested / special values:
*NONE
*NONE- No workstation customizing object is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Workstation customizing object
Workstation customizing object
Library
Library
Suggested / special values:
*LIBL, *CURLIB
DLTSPLF
Delete file after sending
Specifies whether the spooled file is deleted after it has been sent.
Allowed values:
*NO, *YES
*NO- The file stays on its output queue.
*YES- The file is deleted after it is sent.
DESTOPT
Destination-dependent options
Specifies options that are passed to the remote LPD server as they are.
Suggested / special values:
*NONE
*NONE- No destination options are sent.
SEPPAGE
Print separator page
Specifies whether the remote system prints a separator page for the file.
Allowed values:
*NO, *YES
*NO- No separator page is printed.
*YES- A separator page is printed.
Examples
SNDTCPSPLF RMTSYS(*INTNETADR) PRTQ('PDFING') FILE(QPRTLIBL) JOB(*) SPLNBR(*LAST) DESTTYP(*AS400) TRANSFORM(*NO) INTNETADR('192.168.1.10')
Sends the last QPRTLIBL spooled file to printer queue PDFING on the system at 192.168.1.10 without host print transform.
Generated from os/cl/catalog/SNDTCPSPLF.json and os/cl/help/SNDTCPSPLF.json.