Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Start Remote Writer (STRRMTWTR) command starts a spooling writer that sends spooled files from an output queue to a remote system. The writer, which is a system job, takes spooled files from an output queue and sends them to a remote system using SNADS or TCP/IP.
After the spooled file is successfully sent to a remote system, the spooled file will be deleted or saved, as specified by the SAVE spooled file attribute.
More than one writer can be active at the same time (as determined by the spooling subsystem description), and up to 10 writers can be active to the same output queue. Each writer must have a unique writer name, and only one type (print, remote, or diskette) of writer can be active to a single output queue. A writer that has been started can be actively sending output or waiting for a file to be put on the output queue. Optionally, the writer can end automatically when it has processed all the files on the output queue. You can also change, hold, or cancel the writer.
You can continue with other work after starting a writer because each job runs independently. The writer is owned by the user who issues the STRRMTWTR command.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OUTQ | Output queue | Single values: *ALL Other values: Qualified object name |
Required, Positional 1 |
Qualifier 1: Output queue | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MSGQ | Queue for writer messages | Single values: *OUTQ, *REQUESTER Other values: Qualified object name |
Optional, Positional 3 |
Qualifier 1: Queue for writer messages | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
FORMTYPE | Form type options | Element list | Optional |
Element 1: Form type | Character value, *ALL, *STD, *FORMS | ||
Element 2: Message option | *NOMSG, *INQMSG, *MSG, *INFOMSG | ||
WTR | Writer | Name, *OUTQ, *SYSGEN | Optional, Positional 2 |
AUTOEND | Auto-end options | Element list | Optional, Positional 4 |
Element 1: Automatically end writer | *NO, *YES | ||
Element 2: If yes, when to end | *NORDYF, *FILEEND |
Top |
Specifies the output queue that holds the spooled files to be written.
Single values
Qualifier 1: Output queue
Qualifier 2: Library
Top |
Specifies the message queue to which messages created by the writer are sent.
Single values
Qualifier 1: Queue for writer messages
Qualifier 2: Library
Top |
Specifies the name of the form type. The writer uses this value to select spooled files from the specified output queue for sending to a remote system.
Note: A spooled file's form type is specified in the device file that produced the spooled file.
Element 1: Form type
Element 2: Message option
Top |
Specifies the spooling writer being started. Each writer name must be unique.
Top |
Specifies whether the writer ends automatically.
Element 1: Stop Writer Option
Element 2: Conditions for Stopping Writer
Top |
STRRMTWTR OUTQ(RMTOUTQ) WTR(TOM)
This command starts a spooling writer named TOM. This writer takes the output from the output queue named RMTOUTQ and sends the output to the remote system and printer queue specified in the output queue RMTOUTQ. Writer messages are sent to the system operator's message queue, and the writer waits for more output when the queue is emptied.
Top |
*ESCAPE Messages
Top |