View previous topic :: View next topic
|
Author |
Message |
jagankallis Warnings : 1 New User
Joined: 28 Jun 2006 Posts: 29 Location: DUISBURG
|
|
|
|
Dear Members and Experts,
I have a doubt
I’m currently working in a tool development that searches a particular string in the main program and its calling sub programs.
I already have found out the main programs and its sub-programs.
Code: |
//A4XTND1R JOB (A4X#02988P0000000000000000000000),
// 'RAVICHANDRAN,KOMMENT',USER=A4XTND1,PASSWORD=,
// CLASS=N,MSGCLASS=Y,NOTIFY=A4XTND1
//*
//SEARCH EXEC PGM=ISRSUPC,PARM=(SRCHCMP,'ANYC')
//NEWDD DD DISP=SHR,DSN=KKB.PROD.SOURCE(TPKDG)
// DD DISP=SHR,DSN=KKB.PROD.UPROSRC(ADRGET1)
// DD DISP=SHR,DSN=KKB.PROD.UPROSRC(ADRPRF)
// DD DISP=SHR,DSN=KKB.PROD.UPROSRC(ADRPRFF)
// DD DISP=SHR,DSN=KKB.PROD.UPROSRC(ZWUCPD1)
//OUTDD DD SYSOUT=(*)
//SYSIN DD *
SRCHFOR 'CBSAANF'
/* |
I know that the search string CBSAANF is in all the members but the output is only considering the last concatenated DD statement
Code: |
// DD DISP=SHR,DSN=KKB.PROD.UPROSRC(ZWUCPD1) |
Is there any other way?
Thanks,
Jagannathan |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
I think you will find that all lines were selected but shows only the last member read.
Gerry |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Do not provide member names in NEWDD. Instead, use the SELECT statement of SUPERC.
O. |
|
Back to top |
|
|
nandeshwar
New User
Joined: 11 Oct 2010 Posts: 45 Location: Delhi
|
|
|
|
hi ,
i have the same doubt regarding the utilty ISRSUPC . can some body tell me how to know in which PDS my required string was found because even if the stind is found in 1st PDS specified but not present in the last PDS .The OUTDD wil show that it found the string in the last PDS.
Please reply.
thanks,
nandeshwar |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
As documented in the fina manual, SUPERC informs you on the dataset number in the concatenation by the CONCAT# notation.
O. |
|
Back to top |
|
|
Khadhar Basha
New User
Joined: 28 Oct 2014 Posts: 44 Location: India
|
|
|
|
Hi Ofer,
Could you please expalin the below.
Do not provide member names in NEWDD. Instead, use the SELECT statement of SUPERC.
It would be great in explaining If you have a piece of code.
Thanks,
Khadhar |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3051 Location: NYC,USA
|
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Khadhar Basha wrote: |
Hi Ofer,
Could you please expalin the below.
Do not provide member names in NEWDD. Instead, use the SELECT statement of SUPERC.
It would be great in explaining If you have a piece of code.
Thanks,
Khadhar |
Unfortunately, we haven't heard from Ofer for a few years. We can only hope that he is OK.
The SELECT statement is explained in detail here. |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Use like this
Code: |
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,
// 'ANYC',SDUPM) |
regards
Pierre
Modified :
Oups !! I didn't see the original demand was made on 2008 !! |
|
Back to top |
|
|
Khadhar Basha
New User
Joined: 28 Oct 2014 Posts: 44 Location: India
|
|
Back to top |
|
|
|