View previous topic :: View next topic
|
Author |
Message |
deen nisha
New User
Joined: 16 Aug 2005 Posts: 2
|
|
|
|
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 |
|
|
shivashunmugam Muthu
Active User
Joined: 22 Jul 2005 Posts: 114 Location: Chennai
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
|