Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us