g'day,
can someone please tell me if it is legal to assign a VALUE to the FD entry in the file section of the data division thus:
DATA DIVISION.
FILE SECTION.
FD TRANS-FILE.
01 TRANS-REC.
03 TRANS-REF PIC X(5).
88 END-OF-TRANS VALUE HIGH-VALUES.
03 NEW-VALUE PIC 999.
etc...
my cobol manual tells me that it is illegal to assign a value to a data item in the file section, and then goes on to give me the above code in an example program.
Is it that are only allowed in a level 88 condition (which i thought were also illegal in the file section), but not assigned directly to a data field? I'm a bit confused.
any help appreciated, cheers jimlee, who is just about to take exams, wish me luck!!!
can someone please tell me if it is legal to assign a VALUE to the FD entry in the file section of the data division thus:
DATA DIVISION.
FILE SECTION.
FD TRANS-FILE.
01 TRANS-REC.
03 TRANS-REF PIC X(5).
88 END-OF-TRANS VALUE HIGH-VALUES.
03 NEW-VALUE PIC 999.
etc...
my cobol manual tells me that it is illegal to assign a value to a data item in the file section, and then goes on to give me the above code in an example program.
Is it that are only allowed in a level 88 condition (which i thought were also illegal in the file section), but not assigned directly to a data field? I'm a bit confused.
any help appreciated, cheers jimlee, who is just about to take exams, wish me luck!!!