Page 1 of 2

logic behind the ispf menu option (3.14) search

PostPosted: Thu Aug 02, 2007 2:50 pm
by bodhi
Hi,
Anybody tell me about the logic behind the ispf menu option 3.14 (search),means i want to search a particular string in a PDS. Is there is any utilites used to do this search ?

thanks
bodhi

search in pds (view )

PostPosted: Thu Aug 02, 2007 4:47 pm
by bodhi
Hi,

How to search a string in a pds without openning that pds .

thanks
Bodhi

Re: search in pds (view )

PostPosted: Thu Aug 02, 2007 5:02 pm
by CICS Guy
Browse and Find?

Re: search in pds (view )

PostPosted: Thu Aug 02, 2007 5:28 pm
by bodhi
hi,
no i want to do this thing without opening that pds as like in ispf menu option 3.14 .. i want that logic.

Re: logic behind the ispf menu option (3.14) search

PostPosted: Thu Aug 02, 2007 5:36 pm
by CICS Guy
bodhi wrote:no i want to do this thing without opening that pds as like in ispf menu option 3.14 .. i want that logic.
And you want to execute it with a REXX or CLIST?

Re: logic behind the ispf menu option (3.14) search

PostPosted: Thu Aug 02, 2007 5:46 pm
by bodhi
yes i want to excute in rex..

Re: logic behind the ispf menu option (3.14) search

PostPosted: Thu Aug 02, 2007 6:20 pm
by MrSpock
When I select option 3.14, and select Batch execution mode, I get the following JCL:
//SEARCH  EXEC PGM=ISRSUPC,PARM=(SRCHCMP,'ANYC')
//NEWDD  DD DSN=MY.PDS,DISP=SHR
//OUTDD  DD SYSOUT=(A)                                       
//SYSIN  DD *                                                 
SRCHFOR  'STRING'                                             
SELECT #1,#2,#3,#4,#5,#6,#7,#8,#9                               
/*                                                           

Re: logic behind the ispf menu option (3.14) search

PostPosted: Thu Aug 02, 2007 6:34 pm
by bodhi
Thanks for your reply Mrspock.one more question
what do u mean by 'SELECT #1,#2,#3,#4,#5,#6,#7,#8,#9 ' ?
in below code?

thanks

Re: logic behind the ispf menu option (3.14) search

PostPosted: Thu Aug 02, 2007 8:19 pm
by William Thompson
bodhi wrote:what do u mean by 'SELECT #1,#2,#3,#4,#5,#6,#7,#8,#9 ' ?
in below code?
Probably input for ISRSUPC.....

Re: logic behind the ispf menu option (3.14) search

PostPosted: Thu Aug 02, 2007 8:42 pm
by bodhi
But i think we give input at the place of 'STRING' in the above mention code