ILE COBOL Language Reference

Format 1 - Data Transfer

DISPLAY Statement - Format 1 - Data Transfer
 
            .------------------.
            V                  |
>>-DISPLAY----+-identifier-1-+-+-------------------------------->
              '-literal-1----'
 
>--+-------------------------------------+---------------------->
   '-+------+--+-mnemonic-name---------+-'
     '-UPON-'  |                  (1)  |
               '-environment-name------'
 
>--+------------------------------+--+------------------+------><
   |                         (2)  |  |             (1)  |
   '-+------+--NO--ADVANCING------'  '-END-DISPLAY------'
     '-WITH-'
 
 

Notes:

  1. IBM Extension

  2. Syntax-checked only.

identifier-1

+-------------------------------IBM Extension--------------------------------+

If the description of identifier-1 contains a TYPE clause, the type-name specified in that clause must be elementary.

+----------------------------End of IBM Extension----------------------------+

If it is numeric and is not described as external decimal, the identifier is converted automatically to external format, as follows:

literal-1
May be any figurative constant. When a figurative constant is specified, only a single occurrence of that figurative constant is displayed.

Each numeric literal must be an unsigned integer.

+-------------------------------IBM Extension--------------------------------+

Floating-point literals are allowed.

Signed noninteger numeric literals are allowed.

DBCS and national hexadecimal literals are allowed. The ALL figurative constant can be used with DBCS and national hexadecimal literals in a DISPLAY verb.

+----------------------------End of IBM Extension----------------------------+

UPON
The UPON phrase specifies a mnemonic-name that must be associated with either the workstation (REQUESTOR) or the system operator's message queue (CONSOLE or SYSTEM-CONSOLE).

+-------------------------------IBM Extension--------------------------------+

environment-name May be specified in place of mnemonic-name. Valid environment-names are CONSOLE and SYSOUT.

+----------------------------End of IBM Extension----------------------------+

When the UPON phrase is omitted, the DISPLAY statement sends output to the REQUESTOR.

WITH NO ADVANCING
This phrase is syntax checked only and ignored. For a description of a functional WITH NO ADVANCING phrase see Format 4 - Session I/O.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]