cvadlamudi
New User
Joined: 19 Apr 2007 Posts: 68 Location: India
|
|
|
|
Hi,
Is there any way to get the length of a Variable record when it is read from the varaiable input file.
I am using COBOL74, this won't accept
"RECORD IS VARYING FROM 1 TO 100 DEPENDING ON WS-LEN"
and no INSPECT statements.
Thanks & Regards,
Chandramouli.V |
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Chandra,
If you're using a COB74 era Compiler, there s/b a manual available that explains the process of READing a var rec w/COB75 generated code.
I scanned the manual and it's fairly complicated, and you're right, VARYING is NOT supported.
Also, as I recall, there was a way of getting at the RDW (that gives you the len of the rec just read) in COB74 pgms. |
|