View previous topic :: View next topic |
Author |
Message |
kalidasv Beginner
Joined: 05 Mar 2009 Posts: 13 Topics: 8
|
Posted: Thu May 21, 2009 2:38 pm Post subject: Finding a string in big number of generations of a GDG |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu May 21, 2009 4:50 pm Post subject: |
|
|
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 |
|
|
kalidasv Beginner
Joined: 05 Mar 2009 Posts: 13 Topics: 8
|
Posted: Fri May 22, 2009 10:06 am Post subject: |
|
|
Kolusu,
Thank you very much.
Regards
Kalidas |
|
Back to top |
|
|
mickeygoo Beginner
Joined: 15 Nov 2007 Posts: 26 Topics: 7
|
Posted: Wed Jun 10, 2009 3:31 pm Post subject: |
|
|
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 |
|
|
Ravi Beginner
Joined: 27 Jun 2005 Posts: 88 Topics: 2
|
Posted: Wed Jun 10, 2009 10:36 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Jun 10, 2009 11:17 pm Post subject: |
|
|
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 |
|
|
Ravi Beginner
Joined: 27 Jun 2005 Posts: 88 Topics: 2
|
Posted: Wed Jun 10, 2009 11:47 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
|
|