IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Variable length record processing


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cvadlamudi

New User


Joined: 19 Apr 2007
Posts: 68
Location: India

PostPosted: Thu Dec 27, 2007 9:42 am
Reply with quote

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
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Jan 01, 2008 11:52 pm
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top