HP 3000 Manuals

Initiating Communications with the Host [ RJE User/Programmer Reference Manual ] MPE/iX 5.0 Documentation


RJE User/Programmer Reference Manual

Initiating Communications with the Host 

The next step is to sign on to the host by using the RJINcommand.  A
common usage of the RJIN command is:

     #RJIN [input file reference]


NOTE If you are using RJE interactively, the subsystem prompt is a '#' character. If an RJE subsystem command is used in a command file, the first character in the command line, immediately preceding the command, must be a '#' character.
In interactive mode, if you type RJIN at the # prompt (no input file reference), no # prompts will be displayed on the terminal screen and every line that is typed will be interpreted by RJE as input data. (The input file is $STDINX, your keyboard.) The data that we want to send to an IBM host at this point is a signon card. For our example, we will use a standard form of the signon card: #RJIN /*SIGNON REMOTE{remote number} The / begins in column 1, REMOTE begins in column 16, and there is no space between REMOTE and the remote number. To exit input mode and return to command mode, you can either type a [CTRL]-Y or begin the next line with #RJEOD. If input mode is exited with a [CTRL]-Y, you should still execute an #RJEOD command. The #RJEOD command tells RJE to transmit all of the data remaining in its output buffer to the communications line and send an EOT (End-Of-Transmission) sequence to the host. You may wish to create a file containing the signon card and use it as the input file reference for the #RJIN command. Dialing the Host Skip this section if using an Automatic Calling Unit (ACU). The HP 3000 responds to the signon attempt with a dial message at the console which is similar to the following: ?ST/15/24/35/LDEV#110 DIAL 415-555-1212. = ANSWER? (Y/N) In response dial the number displayed in the message. After a high-pitched steady tone is heard, press the DATA key on the telephone or modem. With RJE/V you need to reply to the dial message on the console as follows: =Reply 35,Y Here, the number 35 refers to the process id number from the message above. Produce the '=' sign by pressing [CTRL-A]. At this point, the Data Set Ready (DSR) indicator on the modem should be on. Receiving Data To receive data from the host, use the #RJOUT command. A common usage of #RJOUT is: #RJOUT [output file reference][,count];[WAIT=[m],[s]] The count variable specifies the number of data sets we are to receive (a data set refers to all data preceded by an STX and terminated with an EOT). The default value for count is one data set. The WAIT parameter specifies the minutes (m) and seconds (s) that RJE will wait for data during periods of inactivity. The default value for WAIT is 3 minutes. At this point in our example, enter: #RJOUT The output file will be $STDLIST, your terminal screen. RJE will wait up to 3 minutes for a signon confirmation from the host. After that message is received, you may repeat the $RJIN and $RJOUT commands to transmit jobs and receive output. Signing Off To sign off of the host, use the RJIN command to send a signoff card: #RJIN /*SIGNOFF #RJEOD


MPE/iX 5.0 Documentation