Example of ADD VERB
PROGRAM
IDENTIFICATION DIVISION.                                       Â
PROGRAM-ID. PGM004.                                            Â
AUTHOR. MAINFRAMEWIZARD.                                        DATA DIVISION.                                                  WORKING-STORAGE SECTION.                                       Â01 GROUP1.                                                     Â
  05 ELEMENT1 PIC 9(3) VALUE 15.                              Â
  05 ELEMENT2 PIC 9(3) VALUE 25.                              Â
01 GROUP2.                                                     Â
  05 ELEMENT3 PIC 9(3) VALUE 23.                              Â
  05 ELEMENT4 PIC 9(3) VALUE 45.                              Â
01 NUM1 PIC 9(3) VALUE 05.                                    Â
01 NUM2 PIC 9(3) VALUE 10.                                    Â
01 NUM3 PIC 9(3) VALUE 15.                                    Â
01 NUM4 PIC 9(3) VALUE 20.                                    Â
01 NUM5 PIC 9(3) VALUE 25.                                    Â
01 NUM6 PIC 9(3) VALUE 30.                                    Â
01 NUM7 PIC 9(3) VALUE 05.                                    Â
01 NUM8 PIC 9(3) VALUE 10.                                    Â
01 NUM9 PIC 9(3) VALUE 15.                                    Â
01 NUM10 PIC 9(3) VALUE 20.                                    Â
01 NUM11 PIC 9(3) VALUE 25.                                    Â
01 NUM12 PIC 9(3) VALUE 30.                                                                                                     PROCEDURE DIVISION.                                            Â10000-MAIN-PARA.                                               Â
                                                                                                                               Â
     DISPLAY ‘ADD NUM1 TO NUM2’                               Â
     DISPLAY ‘NUM1 BEFORE =’ NUM1                             Â
     DISPLAY ‘NUM2 BEFORE =’ NUM2                             Â
     ADD NUM1 TO NUM2                                         Â
     DISPLAY ‘NUM1 AFTER =’ NUM1                             Â
     DISPLAY ‘NUM2 AFTER =’ NUM2                                   DISPLAY ‘————————–‘                                                                                     Â     DISPLAY ‘ADD NUM3, NUM4 TO NUM5’                         Â
     DISPLAY ‘NUM3 BEFORE =’ NUM3                             Â
     DISPLAY ‘NUM4 BEFORE =’ NUM4                             Â
     DISPLAY ‘NUM5 BEFORE =’ NUM5                             Â
     ADD NUM3, NUM4 TO NUM5                                   Â
     DISPLAY ‘NUM3 AFTER =’ NUM3                             Â
     DISPLAY ‘NUM4 AFTER =’ NUM4                             Â
     DISPLAY ‘NUM5 AFTER =’ NUM5                                   DISPLAY ‘————————–‘                                                                                     Â     DISPLAY ‘ADD NUM6, NUM7 GIVING NUM8 NUM9’                Â
     DISPLAY ‘NUM6 BEFORE =’ NUM6                             Â
     DISPLAY ‘NUM7 BEFORE =’ NUM7                             Â
     DISPLAY ‘NUM8 BEFORE =’ NUM8                             Â
     DISPLAY ‘NUM9 BEFORE =’ NUM9                             Â
     ADD NUM6, NUM7 GIVING NUM8 NUM9                          Â
     DISPLAY ‘NUM6 AFTER =’ NUM6                             Â
     DISPLAY ‘NUM7 AFTER =’ NUM7                             Â
     DISPLAY ‘NUM8 AFTER =’ NUM8                             Â
     DISPLAY ‘NUM9 AFTER =’ NUM9                                   DISPLAY ‘————————–‘                                                                                     Â     DISPLAY ‘ADD NUM10 TO NUM11 GIVING NUM12’                Â
     DISPLAY ‘NUM10 BEFORE =’ NUM10                           Â
     DISPLAY ‘NUM11 BEFORE =’ NUM11                           Â
     DISPLAY ‘NUM12 BEFORE =’ NUM12                           Â
     ADD NUM10 TO NUM11 GIVING NUM12                          Â
     DISPLAY ‘NUM10 AFTER =’ NUM10                           Â
     DISPLAY ‘NUM11 AFTER =’ NUM11                           Â
     DISPLAY ‘NUM12 AFTER =’ NUM12                                 DISPLAY ‘————————–‘                                                                                     Â     DISPLAY ‘ADD CORRESPONDING GROUP1 TO GROUP2’             Â
     DISPLAY ‘GROUP1 BEFORE =’ GROUP1                         Â
     DISPLAY ‘GROUP2 BEFORE =’ GROUP2                         Â
     ADD CORRESPONDING GROUP1 TO GROUP2                       Â
     DISPLAY ‘GROUP1 AFTER =’ GROUP1                         Â
     DISPLAY ‘GROUP2 AFTER =’ GROUP2                               DISPLAY ‘————————–‘                                                                                     Â     STOP RUN.                          Â