IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ISRSUPC SRCHFOR for Searching thru GDG generations


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
thekumar101

New User


Joined: 22 Aug 2012
Posts: 4
Location: India

PostPosted: Fri Oct 19, 2012 3:35 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Oct 19, 2012 7:36 pm
Reply with quote

No.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Oct 19, 2012 8:01 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Oct 19, 2012 8:17 pm
Reply with quote

you will need to use the IDPFX search of a group
Back to top
View user's profile Send private message
Dale Robertson

New User


Joined: 21 Jun 2013
Posts: 44
Location: U.S.A.

PostPosted: Tue Jun 25, 2013 11:02 pm
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Jun 26, 2013 3:50 am
Reply with quote

Hi,

search on SDUPM and you will not have the same experience again. icon_smile.gif



Gerry
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts SRCHFOR ‘string’ command inside P... TSO/ISPF 14
No new posts SRCHFOR with LMDLIST or LMMLIST TSO/ISPF 7
No new posts Rexx to list generations of GDGs and ... CLIST & REXX 3
Search our Forums:

Back to Top