I often use the display statement to show a fields name and value on SYSOUT, if one of my programs have to report an error/information message to the programmer.
If it's a copybook with many fields it's a lot of statements like
DISPLAY 'FIELD-XX = ' FIELD-XX
DISPLAY 'FIELD-YY = ' FIELD-YY
In the old version of Cobol there was a EXHIBIT statement, but it dissapeard in Cobol 85.
Does anybody know how I make a program that receives a 01-level and then make a display for each field (level) in it ?
Each display shall contain fieldname an field value.
If it's a copybook with many fields it's a lot of statements like
DISPLAY 'FIELD-XX = ' FIELD-XX
DISPLAY 'FIELD-YY = ' FIELD-YY
In the old version of Cobol there was a EXHIBIT statement, but it dissapeard in Cobol 85.
Does anybody know how I make a program that receives a 01-level and then make a display for each field (level) in it ?
Each display shall contain fieldname an field value.