DISPLAY statement.

The DISPLAY statement causes data to be transferred to an appropriate hardware device.

The DISPLAY screen statement causes data associated with a literal or data item that is referenced in a screen item to be made available to the specified screen item and to be displayed on the terminal screen with specified attributes and at the specified position.

Format 1.

          DISPLAY { identifier-1 } ... [ UPON mnemonic-name-1 ]
                  { literal-1    }

                [ WITH NO ADVANCING ]

                [ END-DISPLAY ]

Format 2.

          DISPLAY { identifier-1 } UPON { mnemonic-name-2   }
                  { literal-1    }      { ARGUMENT-NUMBER   }
                                        { ENVIRONMENT-NAME  }
                                        { ENVIRONMENT-VALUE }

Format 3.

          DISPLAY screen-name-1

                         { LINE [ NUMBER ] { identifier-3 }         }
                         {                 { integer-3    }         }
                [ [ AT ] {                                          }
                         { { COLUMN   } [ NUMBER ] { identifier-4 } }
                         { { COL      }            { integer - 4  } }
                         { { POSITION }                             }

                [ [ ON ] EXCEPTION imperative-statement-1 ]
                [ NOT [ ON ] EXCEPTION imperative-statement-2 ]

                [ END-DISPLAY ]

Format 4.

          DISPLAY { identifier-5 } ...
		  { literal-5    }

                         { LINE [ NUMBER ] { identifier-3 }         }
                         {                 { integer-3    }         }
                [ [ AT ] {                                          }
                         { { COLUMN   } [ NUMBER ] { identifier-4 } }
                         { { COL      }            { integer - 4  } }
                         { { POSITION }                             }

                [ UPON CRT ]

                       { BLANK { SCREEN }                              }
                               { LINE   }
                       { { BELL }                                      }
                         { BEEP }
                       { BLINK                                         }
                       { { HIGHLIGHT }                                 }
                         { HIGH }
                [ WITH { { LOWLIGHT }                                  } ... ]
                         { LOW }
                       { REVERSE-VIDEO                                 }
                       { UNDERLINE                                     }
                               { [ END OF ] SCREEN }
                       { ERASE { [ END OF ] LINE   }                   }
                               { EOS               }
                               { EOL               }
                       { { FOREGROUND-COLOR  } [ IS ] { identifier-2 } }
                         { FOREGROUND-COLOUR }        {  integer-2   }
                       { { BACKGROUND-COLOR  } [ IS ] { identifier-3 } }
                         { BACKGROUND-COLOUR }        {  integer-3   }

                [ END-DISPLAY ]

Notes.

mnemonic-name-2 must be associated in the SPECIAL-NAMES with either ARGUMENT-NUMBER, ENVIRONMENT-NAME or ENVIRONMENT-VALUE.

ARGUMENT-NUMBER will set the current argument number.

ENVIRONMENT-NAME sets the current environment name.

ENVIRONMENT-VALUE sets the value from the current environment name as indicated by ENVIRONMENT-NAME.