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

reading variable length records in sequential file


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 5
No new posts To fetch records that has Ttamp value... DFSORT/ICETOOL 4
No new posts ICETOOL returns no records JCL & VSAM 1
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
Search our Forums:

Back to Top