Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

reading variable length records in sequential file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
deen nisha

New User


Joined: 16 Aug 2005
Posts: 2

PostPosted: Tue Aug 16, 2005 5:12 pm    Post subject: reading variable length records in sequential file
Reply with quote

hai friends,
I want to know how to read the variable length records in a sequential file
I declared in the file section as recording mode is 'v'
Back to top
View user's profile Send private message

shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Tue Aug 16, 2005 5:30 pm    Post subject:
Reply with quote

Quote:
recording mode is 'v'


its for QSAM...there is no special consideration. But you have to ensure that the move statement's target storage should be equal or less than the actual length of the record.

experts correct me if am wrong!
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Aug 17, 2005 3:59 am    Post subject:
Reply with quote

Hi,

Reading the recs is only one aspect of the problem. How do you plan to process them once you've read them? Do you have a copybook or record layout? Are the records you're reading have predetermined record lenths? For example is one type of rec 123 bytes; anothe type 42 bytes, etc. Or can the records vary in length because they contain a table that can vary in length from rec to rec.

Do you plan to write them to another file?

If you can answer some of these questions we may be able to pose a solution.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us