Searching GDG versions
Moderators: dbzTHEdinosauer, Moderator Group
Searching GDG versions
How to search all the GDG version for a particual string on Mainframe using a Cobol or REXX program?
gdg versions
Hi,
Yes we can do it in REXX by using outtrap function as below.
x=outtrap('stem.')
"listcat gdg ent("gdg name") all"
Do I= 9 to stem.0
say stem.i
end
The above code displays all the current versions belongs to that particular gdg. Pls let me know If you have any questions.
Yes we can do it in REXX by using outtrap function as below.
x=outtrap('stem.')
"listcat gdg ent("gdg name") all"
Do I= 9 to stem.0
say stem.i
end
The above code displays all the current versions belongs to that particular gdg. Pls let me know If you have any questions.
I think krvarada is asking how to search a string in a GDG with many generations!!!
Well....you can supply GDG base to DDNAME in the JCL to process all the generations by your COBOL program. You would use a SEARCH /PERFORM verb in the procedure division to do a look out on the data what you are looking for.........
Pls correct me if I am wrong.
Well....you can supply GDG base to DDNAME in the JCL to process all the generations by your COBOL program. You would use a SEARCH /PERFORM verb in the procedure division to do a look out on the data what you are looking for.........
Pls correct me if I am wrong.
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
searching GDG versions
Sorry I misunderstood the question in diff way. Arrbee u r correct.
-
- Member
- Posts: 23
- Joined: Wed Jul 29, 2009 4:54 pm
- Location: chennai, Bangalore
Humble request to all
if you have answered wrongly OR had misunderstood the QUESTION in any thread, than please delete the wrong answer you have given.
Thanks
Thanks
- narendra_darwani
- Member
- Posts: 7
- Joined: Wed Dec 24, 2008 6:18 pm
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