Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
search GDG and print the generation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Mon Mar 31, 2008 6:56 pm    Post subject: search GDG and print the generation
Reply with quote

I need to search for a string in different generations of a GDG and if the string is found in any generation I need those generations listed in my search output.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Mon Mar 31, 2008 7:07 pm    Post subject: Reply to: search GDG and print the generation
Reply with quote

Just to be clear, if you have a thousand generations, and if the string is found in 999 of them, you want to report on all of the 999 generations where the string was found? Or, only the most recent? The oldest?
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Mon Mar 31, 2008 7:11 pm    Post subject:
Reply with quote

all the generations ....

thanks
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Mon Mar 31, 2008 8:15 pm    Post subject: Reply to: search GDG and print the generation
Reply with quote

This is a similar topic. I'll see if I can find more.

Here's another one.

This one looks useful, since it looks as if you may need to code a program to do what you want.
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Mon Mar 31, 2008 9:59 pm    Post subject:
Reply with quote

But Kevin i need to print the GDG versions in which the string was found
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Mar 31, 2008 11:25 pm    Post subject:
Reply with quote

Hello,

Did you read all of the first link Kevin posted?

I believe the jcl you need to do what you want is in the last reply of that topic.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Mon Mar 31, 2008 11:44 pm    Post subject: Reply to: search GDG and print the generation
Reply with quote

I don't see that there's any options other than a loop, searching each generation individually, indicating a YES/NO on the match, and then printing out only the generations where a YES is indicated.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TBSARG - Deleting the search criteria... ISPFHerc TSO/ISPF 5 Thu Dec 14, 2017 8:18 am
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us