The command is for SLU2 mode only.
FEPI CONVERSE FORMATTED sends application data to and receives a reply from a target. The data supplied by the application must be formatted data, as key strokes (with a final attention character) or a screen image; the data received into the application’s data area is a screen image. Full details about the data are given in Data formats.
The conversation with the target can be one of two types:
The command first waits for a suitable session to become available (if there is not already one); it does not complete until ‘end bracket’ or ‘change direction’ is indicated.
A time limit can be set for this command. For more details of ending conditions, see Ending status.
The syntax for each type of conversation is shown separately.
FEPI CONVERSE FORMATTED >>-FEPI CONVERSE FORMATTED--CONVID(data-value)------------------> >--FROM(data-value)--+-------------------------+----------------> '-FROMFLENGTH(data-value)-' >--+-AID(data-value)--+------------------------+-+--------------> | '-FROMCURSOR(data-value)-' | '-KEYSTROKES--+--------------------+----------' '-ESCAPE(data-value)-' >--+----------------------------------+-------------------------> '-INTO(data-area)-| INTO options |-' >--+-------------------+--+--------------------+----------------> '-ALARMSTATUS(cvda)-' '-COLUMNS(data-area)-' >--+-----------------+--+-------------------+-------------------> '-ENDSTATUS(cvda)-' '-FIELDS(data-area)-' >--+------------------+--+------------------+-------------------> '-LINES(data-area)-' '-RESPSTATUS(cvda)-' >--+---------------------+--+---------------------+------------>< '-TIMEOUT(data-value)-' '-TOCURSOR(data-area)-' INTO options: |--+------------------------+--+----------------------+---------| '-MAXFLENGTH(data-value)-' '-TOFLENGTH(data-area)-'
FEPI CONVERSE FORMATTED >>-FEPI CONVERSE FORMATTED--POOL(data-value)--------------------> >--+--------------------+--FROM(data-value)---------------------> '-TARGET(data-value)-' >--+-------------------------+--KEYSTROKES----------------------> '-FROMFLENGTH(data-value)-' >--+--------------------+---------------------------------------> '-ESCAPE(data-value)-' >--+----------------------------------+-------------------------> '-INTO(data-area)-| INTO options |-' >--+-------------------+--+--------------------+----------------> '-ALARMSTATUS(cvda)-' '-COLUMNS(data-area)-' >--+-----------------+--+-------------------+-------------------> '-ENDSTATUS(cvda)-' '-FIELDS(data-area)-' >--+------------------+--+------------------+-------------------> '-LINES(data-area)-' '-RESPSTATUS(cvda)-' >--+---------------------+--+---------------------+------------>< '-TIMEOUT(data-value)-' '-TOCURSOR(data-area)-' INTO options: |--+------------------------+--+----------------------+---------| '-MAXFLENGTH(data-value)-' '-TOFLENGTH(data-area)-'
Symbolic names for the AID values are available for the supported languages in the language-specific DFHAID copybooks.
The INVREQ condition can have the following RESP2 values: