DISPLAY

Discarded. 

FUNCTION

To display the values of fields on an output device.

 

FORMAT

DISPLAY

      [DATA] (display-item [, display-item]...)

      [UPON { CONSOLE | SYSOUT | SYSPUNCH }]

 

display-item::=

{ field-reference

| generic-reference

| string-constant

| national-character-string-constant

| bit-constant

| numeric-constant }

 

FUNCTION

The value of each requested display-item is output in character form;  no account is taken of display-formats. For example:

      DISPLAY CUSTOMER.NAME CUSTOMER.BALANCE;

will produce:

      MANA SYSTEMS LIMITED999.99

 

If you specify a generic-reference, all the fields and any redefinitions in the record are output.

 

You can use subscripted variable references and as many DISPLAY statements as you like in a program.

 

OPTIONS

[DATA] (display-item [, display-item]...)

You may omit the word DATA if the DATA option immediately follows the keyword DISPLAY.

 

[UPON { CONSOLE | SYSOUT | SYSPUNCH }]

You can direct the output to a particular device;  if you do not specify a device, UPON SYSOUT is assumed.

 

UPON CONSOLE  directs the output to the operators' console. You cannot output more than 124 bytes to the console.

 

UPON SYSOUT directs the output to the SYSOUT dataset described by the program's JCL. In a single DISPLAY statement, you cannot output more than 136 bytes to SYSOUT. If the field contains any national characters, you must specify SYSOUT as the output device.

 

UPON SYSPUNCH directs the output to the SYSPUNCH dataset described by the program's JCL. In a single DISPLAY statement, you cannot output more than 72 bytes to SYSPUNCH.

 

If the number of characters of data to be output exceeds the limit of the device, the data will flow onto the next line or record of the device.