Example of ACCEPT and DISPLAY
PROGRAM
IDENTIFICATION DIVISION.                 Â
PROGRAM-ID. PGM001.                      Â
AUTHOR. MAINFRAMEWIZARD.                  DATA DIVISION.                            WORKING-STORAGE SECTION.                 Â01 VAR1 PIC 9(3) VALUE ZEROES.           Â
PROCEDURE DIVISION.                      Â
10000-MAIN-PARA.                         Â
    ACCEPT VAR1.                        Â
    DISPLAY ‘VARIABLE INPUT IS=’ VAR1.  Â
    STOP RUN.                                                    Â