Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums 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: 1790
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 Split input file into multiple files ... srini24 DFSORT/ICETOOL 1 Sat Mar 30, 2019 9:39 pm
This topic is locked: you cannot edit posts or make replies. Copy one file to possible multiple files dibyendumandal11111 SYNCSORT 9 Fri Mar 08, 2019 2:47 am
No new posts Split single i/p line into multiple l... elixir1986 DFSORT/ICETOOL 2 Wed Feb 27, 2019 12:47 am
No new posts Query on updating the control cards. abdulrafi DFSORT/ICETOOL 2 Tue Feb 26, 2019 2:23 pm
This topic is locked: you cannot edit posts or make replies. Query on updating the control cards. abdulrafi JCL & VSAM 2 Mon Feb 25, 2019 7:43 pm

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