Searching GDG versions

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
krvarada
Member
Posts: 2
Joined: Fri May 12, 2006 12:40 pm

Searching GDG versions

Post by krvarada » Fri May 12, 2006 12:44 pm

How to search all the GDG version for a particual string on Mainframe using a Cobol or REXX program?

srinivas
Member
Posts: 9
Joined: Wed Feb 08, 2006 2:58 pm
Location: Bangalore

gdg versions

Post by srinivas » Tue May 30, 2006 12:52 pm

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.

User avatar
arrbee
Active Member
Posts: 144
Joined: Fri Feb 24, 2006 11:33 am

Post by arrbee » Wed May 31, 2006 12:11 pm

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.
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)

srinivas
Member
Posts: 9
Joined: Wed Feb 08, 2006 2:58 pm
Location: Bangalore

searching GDG versions

Post by srinivas » Wed May 31, 2006 3:48 pm

Sorry I misunderstood the question in diff way. Arrbee u r correct.

pankaj_zenith2008
Member
Posts: 23
Joined: Wed Jul 29, 2009 4:54 pm
Location: chennai, Bangalore

Humble request to all

Post by pankaj_zenith2008 » Fri Aug 14, 2009 3:38 pm

if you have answered wrongly OR had misunderstood the QUESTION in any thread, than please delete the wrong answer you have given.
Thanks

User avatar
narendra_darwani
Member
Posts: 7
Joined: Wed Dec 24, 2008 6:18 pm

Post by narendra_darwani » Fri Aug 14, 2009 6:03 pm

To add On,

if You are looking for generations with particular string for Search purpose only,
you can use SRCHFOR command in the command line in ISPF to search for particular strings in the generations.
Thanks & Regards,
Naren

academyindia4

Topic deleted by Admin

Post by academyindia4 » Wed Jan 27, 2016 8:23 pm

<< Content deleted By Admin >>

Post Reply

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



Other References
Mainframe Tools and others