Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

ISRSUPC SRCHFOR tool - Query while using multiple pds

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
soundarr

New User


Joined: 17 Jan 2008
Posts: 25
Location: Chennai

PostPosted: Wed Mar 16, 2016 8:55 pm    Post subject: ISRSUPC SRCHFOR tool - Query while using multiple pds
Reply with quote

Dear All,

I am trying to use ISRSUPC batch job to search 'ABC' in 2 datasets. It is present in TEST.PDS2.

//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,
// 'ANYC')
//NEWDD DD DISP=SHR,DSN=TEST.PDS2
// DD DISP=SHR,DSN=TEST.PDS1
//OUTDD DD SYSOUT=(A)
//SYSIN DD *
SRCHFOR 'ABC'
/*

gives the member name in TEST.PDS2 but when reversing the order of PDS as below:


//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,
// 'ANYC')
//NEWDD DD DISP=SHR,DSN=TEST.PDS1
// DD DISP=SHR,DSN=TEST.PDS2
//OUTDD DD SYSOUT=(A)
//SYSIN DD *
SRCHFOR 'ABC'
/*

it says that the string is not found.

Please help on this. Need to know why the 2nd job does'nt find the string.

Regards
Soundarr
Back to top
View user's profile Send private message

Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 990
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Mar 16, 2016 9:26 pm    Post subject:
Reply with quote

It should work. Are the attributes of both PDSes the same? It looks like the search is only beiong performed on the first PDS in the concatenation.

Garry.
Back to top
View user's profile Send private message
soundarr

New User


Joined: 17 Jan 2008
Posts: 25
Location: Chennai

PostPosted: Wed Mar 16, 2016 9:45 pm    Post subject:
Reply with quote

Yes, The attributes are same.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1238
Location: Richfield, MN, USA

PostPosted: Wed Mar 16, 2016 9:49 pm    Post subject:
Reply with quote

Soundarr,
Please use Code tags to preserve proper spacing.
Back to top
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 331
Location: USA

PostPosted: Wed Mar 16, 2016 10:18 pm    Post subject: Reply to: ISRSUPC SRCHFOR tool - Query while using multiple pds
Reply with quote

You misspelled something. Most probably the name.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Wed Mar 16, 2016 10:35 pm    Post subject:
Reply with quote

Are there duplicate member names?
Back to top
View user's profile Send private message
soundarr

New User


Joined: 17 Jan 2008
Posts: 25
Location: Chennai

PostPosted: Wed Mar 16, 2016 11:56 pm    Post subject: Reply to: ISRSUPC SRCHFOR tool - Query while using multiple pds
Reply with quote

Thanks Akatsukami !! Added a SDUPM and it worked! icon_biggrin.gif

Code:
//SEARCH  EXEC PGM=ISRSUPC,
//            PARM=(SRCHCMP,
//            'ANYC',SDUPM)
Back to top
View user's profile Send private message
soundarr

New User


Joined: 17 Jan 2008
Posts: 25
Location: Chennai

PostPosted: Thu Mar 17, 2016 12:01 am    Post subject:
Reply with quote

Just to be elaborate. There was a member in PDS1 which did not have "ABC" and a member with same name in PDS2 had "ABC". So, system ignored that member in PDS2 after finding it in PDS1 which came first in the concatenation.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts Interface from Mainframe to Confluenc... hblun CLIST & REXX 4 Tue Sep 20, 2016 5:47 pm
No new posts SQL Query optimization. arunsoods DB2 12 Sun Sep 04, 2016 6:27 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us