COBOL

COBOL JUST RIGHT CLAUSE

The following simple program depicts the use of JUSTIFIED RIGHT clause        01 VAR1  PIC X(50) VALUE SPACES.        01 VAR2  PIC X(50) JUSTIFIED RIGHT VALUE SPACES.            MOVE ‘JUSTIFIED RIGHT DEPICTED BY MAINFRAMEWIZARD.COM’ Output of the above program is as below JUSTIFIED RIGHT DEPICTED BY MAINFRAMEWIZARD.COM

COBOL JUST RIGHT CLAUSE Read More »

COBOL EVALUATE FALSE

The following COBOL program depicts the use of         01 WS-SUB   PIC 9  VALUE ZEROS.                   DISPLAY ‘WS-SUB IS GREATER THAN 4’                   DISPLAY ‘WS-SUB IS GREATER THAN 5’                   DISPLAY

COBOL EVALUATE FALSE Read More »