Sequencing of Commands and Replies
The communication between the User and Server is intended to be an alternating dialogue. As such, the User issues an RJE command and the Server responds with a prompt primary reply. The User should wait for this initial success or failure response before sending further commands.
A second type of reply is sent by Server asynchronously with respect to User commands. These replies report on the progress of a job submission caused by the INPUT command and as such are secondary replies to that command.
The final class of Server "replies" are strictly informational and may arrive at any time. These "replies" are listed below as spontaneous.
COMMAND-REPLY CORRESPONDENCE TABLE
COMMAND SUCCESS FAILURE
REINIT 204 467,500-505
USER 230,330 430-432,500-505
PASS 230 430-432,500-505
BYE 231,232 500-505
INID 200 500-505
INPASS 200 500-505
INPATH 200 500-505
INPUT 240 360,440-442,500-505
sec. input retrieval 260 460,461
sec. job execution 261 462,463
sec. output transmission - 443-445,466
ABORT (input) 201,202 500-505
OUTUSER 200 500-505
OUTPASS 200 500-505
OUT 200 500-505
CHANGE 200 500-505
RESTART/RECOVER/BACK
/SKIP/ABORT (output)/HOLD 203 464,500-506
STATUS 1xx,264 460-465,500-505
CANCEL 262 464,500-506
ALTER 263 464,465,500-506
OP 200 500-505
Spontaneous 0xx,300,301 434-436
Note: For commands appearing on cards, a separate set of error codes is provided (507-512). Since these error replies are "asynchronously" sent, and thus could cause some confusion if the user is in the process of submitting a new job after the present one, the error replies must identify which job has the faulty card(s).
TYPICAL RJE SCENARIOS
TIP USER WANTING HOT CARD READER TO HOSTX
- TIP user opens TELNET connection to HOSTX socket 5 2. Commands sent over TELNET to RJE
USER=myself
PASS=dorwssap
OUT=H70002
INPUT=H50003
-
RJE-server connects to the TIP's device 5 and begins reading. When end-of-job card is recognized, the job is queued to run. The connection to the card reader is still open for more input as another job.
-
The first job finishes. A connection to the TIP's device 7 is established by RJE-server and the output is sent as an NVT stream.
-
Continue at any time with another deck at step 3.
TIP WITH JOB-AT-A-TIME CARD READER
-
thru 4) the same but User closes Reader after the deck 2. The output finishes and the printer connection closes.
-
INPUT may be typed any time after step 3 finishes and another job will be entered starting at 3.
HOSTA USER RUNS JOB AT HOSTC, INPUT FROM HOSTB
- User TELNET connects to HOSTC socket 5 for RJE
USER=roundabout
PASS=aaabbbc
OUTUSER=roundab1
OUT=:E/.sysprinter
OUT puncher = (S)HOSTB:NE/my.savepunch
INUSER=rounder
INPASS=x.x.x
INPUT=HOSTB:E/my.jobinput
-
The RJE-server has FTP retrieve the input from HOSTB using User-id of "rounder" and Password of "x.x.x" for file named "my.jobinput".
-
The job finishes. RJE-server uses FTP to send two files: the print output is sent to HOSTA in EBCDIC with ASA carriage control to file ".sysprinter" while the file known as "puncher" is sent to HOSTB in EBCDIC without carriage-control to file "my.savepunch".
-
when the outputs finish, RJE-server at HOSTC discards the print file but retains the "puncher" file.
-
The User who has signed out after job submission has gotten his output and checked his file "my.savepunch" at HOSTB. He deletes the saved copy at HOSTC by re-calling RJE at HOSTC.
USER=roundabout
PASS=aaabbbcc
ABORT job 123 puncher
or
CHANGE job 123 puncher = (D)