This format is used to transfer data to the ILE common session manager.
DISPLAY Statement - Format 4 - Session I/O .------------------. V | >>-DISPLAY----+-identifier-1-+-+--+---------------+-------------> '-literal-1----' '-UPON--DISPLAY-' >--+-------------------------+--+-------------+---------------->< '-+------+--NO--ADVANCING-' '-END-DISPLAY-' '-WITH-'
This format is only applicable when the UPON DISPLAY phrase is specified or the CONSOLE IS DISPLAY clause is specified in the SPECIAL-NAMES paragraph.
The DISPLAY statement's literal operands or the contents of the DISPLAY statement's identifier operands, are written to the ILE common session manager. The data is written to the session manager according to the rules outlined in format 1 — Data Transfer (refer to the description of identifier-1 and literal-1 under Format 1 - Data Transfer). If the contents of identifier-1 or literal-1 span more than one line, writing of data continues at the first position of the next line of the ILE common session manager.
If the WITH NO ADVANCING phrase is not specified a new line character is written to the session manager; if it is specified, the session manager will be positioned immediately following the last character of the last operand displayed.
Identifier-1 can be date-time data item.
Identifier-1 can be a DBCS or national data item. If identifier-1 is national item, the output data will be converted to the code set specified by the job's current CCSID.