88 level in COBOL?

  • Level 88 → Conditional variable, used for readability in conditions.

Example:

01 STATUS-CODE    PIC 9(1).
   88 SUCCESS     VALUE 1.
   88 FAILURE     VALUE 0.

IF SUCCESS
   DISPLAY "Operation Successful".

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *