Using NS3000/iX Network Services (36920-90008)

Chapter 2 43
Virtual Terminal
Using the Remote Subsystem from a Batch Job
Using the Remote Subsystem from a Batch
Job
While in a batch job, you can establish a remote session by using the
DSLINE or REMOTE HELLO command. The job streamed may be similar
to the following (local and remote prompts are shown for clarity):
JOB USER.ACCOUNT
:DSLINE REMOTE2
:REMOTE HELLO RUSER.RACCOUNT
:REMOTE
#FILE OUT;DEV=LP
#BUILD WORK;DISC=50
#RUN USERPROG
#PURGE WORK
#:
:REMOTE BYE
:DSLINE;CLOSE
:EOJ
NOTE The remote # prompt is optional. It allows you to more easily identify
remote commands in a job stream.
Remember that once a remote session has been established, it interacts
with the job in the same way as it would interact with a terminal. If the
remote session detects an error, the error will be printed to $STDLIST.
If the error generates a user prompt, the next record in the job file is
read as the response (in the same manner as waiting for a character or
[Return] on a terminal). That record is then lost to the job.