I am trying to find out if it is possible to POINT or jump to a pre-read record when using QSAM or ISAM files in Easytrieve. For example, lets say I am reading in 2 files (not matching them) and I may have a piece of code as follows:
If conditiona = true
Get file b
End-if
Then when I am done processing that If statement, I want to reset Fileb so that the next time I read a record from Filea and conditiona is true it will again, start from the top of Fileb and get the record at the top.
I know this is do-able with VSAM as it has a key and you simply point the key back to the first record in the file.
I know this is a tough question, but, I feel it is do-able. It may require outside help via Cobol or Assembler or if I can tweak the way Easytrieve reads sequential files... or get addressability to the record counter in Easytrieve I could make the change.
Any help on this tough question would be appreciated.
Editted: I should clarify that the 2 files being read are in a sequential order but are not keyed.
Re-Reading QSAM files.
Moderators: DikDude, Moderator Group
easytrieve reading VSAM file
Try with easytrieve command
Here you need to declare file as ...
Code: Select all
READ filename KEY keyfieldname STATUS
Code: Select all
FILE filename VS
......
Natarajan
Chennai
Chennai
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page