1) Is it possible to read a KSDS file without Key??
2) We have 100 records in a KSDS file. While reading some 51 st record some abend has occured. Again the file should not be read from beginning it should start reading from where it got abended??
By restarting, how do you get the key for 51 st record ??
Can someone help me in answering this question?
Question related to KSDS
Moderator: Moderator Group
Question related to KSDS
Last edited by malathy on Wed Sep 04, 2013 1:31 pm, edited 2 times in total.
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
does this actually mean "reading the 51st record"?reading some 51 st record
What is the difference between read from the beginning, i.e. the first record, and reading from the "first" where "first" is presumably the "first record"?not be read from beginning it should start reading from the first
Regards
Nic
Nic
Malathy -
For your second query, you want to start reading X th record if the program previously abended in Xth record also you don't have any key?
If my assumption over your second query is correct - it is not possible to perform a DYNAMIC read in KSDS with-out key. if you don't pass key (assume initially the key variable is space) it will start reading the file >= space.
So it is programmer's responsibility to have some logic to hold the key value (say in table or other files) in order to do the above mentioned requirement on restart.
Hope this help.
Thanks.
For your second query, you want to start reading X th record if the program previously abended in Xth record also you don't have any key?
If my assumption over your second query is correct - it is not possible to perform a DYNAMIC read in KSDS with-out key. if you don't pass key (assume initially the key variable is space) it will start reading the file >= space.
So it is programmer's responsibility to have some logic to hold the key value (say in table or other files) in order to do the above mentioned requirement on restart.
Hope this help.
Thanks.
Guru:-)
You're never fully dressed without a smile
You're never fully dressed without a smile
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