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

Active Member


Joined: 08 May 2006
Posts: 995
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: 397
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: 1775
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 ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am

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