View previous topic :: View next topic
|
Author |
Message |
soundarr
New User
Joined: 17 Jan 2008 Posts: 25 Location: Chennai
|
|
|
|
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 |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
soundarr
New User
Joined: 17 Jan 2008 Posts: 25 Location: Chennai
|
|
|
|
Yes, The attributes are same. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1248 Location: Richfield, MN, USA
|
|
|
|
Soundarr,
Please use Code tags to preserve proper spacing. |
|
Back to top |
|
|
RahulG31
Active User
Joined: 20 Dec 2014 Posts: 446 Location: USA
|
|
|
|
You misspelled something. Most probably the name. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
Back to top |
|
|
soundarr
New User
Joined: 17 Jan 2008 Posts: 25 Location: Chennai
|
|
|
|
Thanks Akatsukami !! Added a SDUPM and it worked!
Code: |
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,
// 'ANYC',SDUPM) |
|
|
Back to top |
|
|
soundarr
New User
Joined: 17 Jan 2008 Posts: 25 Location: Chennai
|
|
|
|
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 |
|
|
|