View previous topic :: View next topic
|
Author |
Message |
thekumar101
New User
Joined: 22 Aug 2012 Posts: 4 Location: India
|
|
|
|
Code: |
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,ANYC)
//NEWDD DD DSN=USERID.GDG.BASE,
// DISP=SHR
//OUTDD DD SYSOUT=(A)
//SYSIN DD *
SRCHFOR 'SEARCH_STRING'
/*
|
For above snippet, the output comprises of all the records matching the SEARCH_STRING in all the generations together.
Is it possible to get the output with the GDG's generation names in which the SEARCH_STRING is found? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
No. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
instead of using the base name - which is effectively only one newdd,
you need to list them all in a concatenation.
the output will list the string found and the file number (1),
which you will then have to relate to the listing provided of
file name and file number.
and instead of asking "what do i mean?",
take two or three file names
hlq.mlq.llq.gnn1vnn
hlq.mlq.llq.gnn2vnn
hlq.mlq.llq.gnn3vnn
and execute the search and look at the output
or refer to the manual for explanation of the output. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
Dale Robertson
New User
Joined: 21 Jun 2013 Posts: 44 Location: U.S.A.
|
|
|
|
There seems to be one minor problem with ISRSUPC that you might wish to consider if you concatenate files. Once super c finds a string in a member of a pds and finds it in the same member name of a different library it doesn't seem to let you know that it found it more than once.
At least that's been my experience.
r
"That defeats the whole purpose of the Doomsday Machine!! Why didn't you tell anyone?"
--Dr. Strangelove. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
search on SDUPM and you will not have the same experience again.
Gerry |
|
Back to top |
|
|
|