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

Incorrect results in SRCHFOR using ISRSUPC


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

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Thu Oct 06, 2011 9:04 pm
Reply with quote

I am searching for a string 'PGM1' using the below job. I am not gettting the correct result even though the string 'PGM1' present in one of the member of third dataset PDS3.

All the three input datasets contains thousands of members.

I reorder the concatenation of dataset by bringing the third dataset to first, then I am getting the correct result.

Could you please anyone throw light on this
Code:
//JOBNAMEA JOB 0,CLASS=T,MSGCLASS=0,NOTIFY=&SYSUID             
//SEARCH  EXEC PGM=ISRSUPC,PARM=(SRCHCMP,'ANYC',IDPFX,XREF)   
//NEWDD  DD DISP=SHR,DSN=PDS1                       
//       DD DISP=SHR,DSN=PDS2                       
//       DD DISP=SHR,DSN=PDS3                     
//OUTDD  DD SYSOUT=*                                           
//SYSIN  DD *                                                 
SRCHFOR 'PGM1'
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Oct 06, 2011 9:41 pm
Reply with quote

Hello,

Try running them separately. . .

I've not tried to concatenate entire partitioned datasets. . .

Possibly has to do with dcb info or if there is a mix of pds and pdse . . . icon_confused.gif
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Thu Oct 06, 2011 9:46 pm
Reply with quote

I have duplicate member names in the PDS concatenation.
I have used SDUPM in PARM and now I am getting my expected results.
The SDUPM parameter searches duplicate member names in the PDS concatenation.
Code:
//SEARCH  EXEC PGM=ISRSUPC,PARM=(SRCHCMP,'ANYC',IDPFX,XREF,SDUPM)
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Oct 06, 2011 10:01 pm
Reply with quote

Good to hear it is working - thank you for letting us know the resolution icon_smile.gif

d
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 DB2 Statistics - Using EXPLAIN and qu... DB2 1
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
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 Need example for CALL 'ISRSUPC' in COBOL COBOL Programming 2
Search our Forums:

Back to Top