05 - establish terminal communication.

Usage:

mme     gerout
vfd     18/0,o6/05,h12/TERMID
bci     1,PROGRAMID

Where:

TERMID
should be initialized to zero. MME GEROUT will fill this in with a terminal ID name when communication is established.
PROGRAMID
consists of six BCD characters that identify this program.

Description:

This version of MME GEROUT is used when the program is ready to establish communication with a terminal.

When a terminal transmits a Direct Program Access (DAC) JCL statement, it specifies the PROGRAMID of the program with which it wishes to communicate. When that program issues a MME GEROUT with the appropriate PROGRAMID, the MME GEROUT will enter the terminal's TERMID in the correct field of the word following the call to MME GEROUT.

It may happen that the terminal DAC statement is not received until after the program issues its MME GEROUT. If this version of MME GEROUT cannot connect with a terminal immediately, it returns to the calling program, but the request remains outstanding until the connection is made. When the connection can be established, it is, and the TERMID will be inserted in the appropriate field. The user program should zero the field to begin with, then test the field periodically to determine when the TERMID has been supplied.

A program can have a maximum of two outstanding requests of this nature. The requests must be issued from different locations and have different inquiry (PROGRAMID) names. If a program tries a new request when two requests are already outstanding, it will be aborted.

Copyright © 2000, Thinkage Ltd.