Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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

Senior Member


Joined: 08 May 2006
Posts: 1054
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: 1249
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: 447
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: 1789
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
No new posts Query on JCL abdulrafi DFSORT/ICETOOL 5 Wed Oct 16, 2019 7:02 pm
No new posts DB2 Query runs very long John F Dutcher DB2 21 Wed Aug 21, 2019 11:44 pm
No new posts Query to Truncate value in table bhaskar_kanteti DB2 2 Mon Aug 12, 2019 3:26 pm
No new posts Is possible to concatenate multiple P... Poha Eater DFSORT/ICETOOL 6 Fri Aug 02, 2019 1:21 pm
No new posts Verify WITH UR present inside program... priyankakir CLIST & REXX 23 Wed Jun 12, 2019 3:37 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us