Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : When you specified V for RECFM parameter, LRECL value is largest record in the file plus 4 bytes. These four bytes contain the actual length of each variable length record in the file

Google
 
Web mainframegurukul.com

Searching GDG versions

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL
  View previous topic :: View next topic  
Author Message
krvarada
Member


Joined: 12 May 2006
Posts: 2

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri May 12, 2006 12:44 pm    Post subject: Searching GDG versions Reply with quote

How to search all the GDG version for a particual string on Mainframe using a Cobol or REXX program?
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

srinivas
Member


Joined: 08 Feb 2006
Posts: 9
Location: Bangalore

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue May 30, 2006 12:52 pm    Post subject: gdg versions Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
arrbee
Active Member


Joined: 24 Feb 2006
Posts: 144

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed May 31, 2006 12:11 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Send e-mail
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
srinivas
Member


Joined: 08 Feb 2006
Posts: 9
Location: Bangalore

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed May 31, 2006 3:48 pm    Post subject: searching GDG versions Reply with quote

Sorry I misunderstood the question in diff way. Arrbee u r correct.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
pankaj_zenith2008
Member


Joined: 29 Jul 2009
Posts: 23
Location: chennai, Bangalore

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Aug 14, 2009 3:38 pm    Post subject: Humble request to all Reply with quote

if you have answered wrongly OR had misunderstood the QUESTION in any thread, than please delete the wrong answer you have given.
Thanks
Back to top
View user's profile Send private message Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
narendra_darwani
Member


Joined: 24 Dec 2008
Posts: 7

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Aug 14, 2009 6:03 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jan 27, 2016 8:23 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-130.html