MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Finding a string in big number of generations of a GDG

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
kalidasv
Beginner


Joined: 05 Mar 2009
Posts: 13
Topics: 8

PostPosted: Thu May 21, 2009 2:38 pm    Post subject: Finding a string in big number of generations of a GDG Reply with quote

Hi,

I have about 150 generations on one GDG. I need to find the generations with one particular a/c number.

I know to use PGM=SORT and have the GDG base for SORTIN. But it is not going to tell which particular generation has the a/c number.

Please suggest if anyone familiar with a command/utility for this.

Thanks in advance.
Kalidas
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu May 21, 2009 4:50 pm    Post subject: Reply with quote

kalidasv,

1. Go to 3.4 in ISPF
2. Give your GDG base name press ENTER
3. On the next screen at the command prompt type 'srchfor' and press ENTER
4. A menu will open and allow you to write search string there and the same search string(s) will be searched in all the dataset listed in dslist screen.
5. It will also show where the search results are stored.

Before you ask , there is NO batch version of this utitlity

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kalidasv
Beginner


Joined: 05 Mar 2009
Posts: 13
Topics: 8

PostPosted: Fri May 22, 2009 10:06 am    Post subject: Reply with quote

Kolusu,

Thank you very much.

Regards
Kalidas
Back to top
View user's profile Send private message
mickeygoo
Beginner


Joined: 15 Nov 2007
Posts: 26
Topics: 7

PostPosted: Wed Jun 10, 2009 3:31 pm    Post subject: Reply with quote

Koluso,

Didn't even know that existed! Kewl!

Any other "hidden" ISPF commands you can share?

Also, curious that there is NO batch version - it said it invoked SRCHFOR, which has a batch component, or does that not handle GDG bases as the source?
_________________
Not an expert, but I did stay at a Holiday Inn... though it has been a while...
Back to top
View user's profile Send private message
Ravi
Beginner


Joined: 27 Jun 2005
Posts: 88
Topics: 2

PostPosted: Wed Jun 10, 2009 10:36 pm    Post subject: Reply with quote

Wow! Awesome solution.. I know that SRCHFOR exists in 3.4 and I used to only do for a PDS search.

This is amazing trick.. Thanks for sharing Kolusu.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Jun 10, 2009 11:17 pm    Post subject: Reply with quote

Mickeygoo,

I wouldn't say it is hidden , as SRCHFOR command has been part of ISPF since z/OS 1.2. The same command also works on members in the PDS list, you can type the Search String after the
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ravi
Beginner


Joined: 27 Jun 2005
Posts: 88
Topics: 2

PostPosted: Wed Jun 10, 2009 11:47 pm    Post subject: Reply with quote

Cool. Learnt
HIDE X.
Looked into QW HIDE and found that by giving RESET HIDE, we will be back to X ALL; F <string> ALL;

and for FILTER I tried FILTER ID EQ USERID and it was cool.

CLIPBOARD is another one which I like. Looks like a feature similar to MS WORD display clipboard options.

In View/Edit mode Select the records which you want to CUT. using block CC line command or Cn where n is a number and type CUT A.
Now you can use PASTE A in any other View/Edit session.
Similarly you can say CUT JOBCARD and use PASTE JOBCARD.

You can save your clipboard name upto 8 characters.

To view all the CLIPBOARD you have, use this CUT DISPLAY on your command prompt.

Now you can even edit/delete/browse the Clipboards you have copied. Try playing around Mr. Green
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group