View previous topic :: View next topic
|
Author |
Message |
sandhya rani
New User
Joined: 05 Dec 2006 Posts: 22 Location: hyderabad
|
|
|
|
Hi,
I have to get exact match of string in list od PDS .Please let me know if anyone has any idea.
Actually my main requirement is search particular copybook(nexted copybopooks) used in list of the programs and copybooks.fo rthe sae i have coded the JCL as follows:
//LLLLLLLM JOB (YYYYYYY),'SCAN',CLASS=V,MSGCLASS=W,
// NOTIFY=LLLLLLL
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,
// 'ANYC MIXED')
//NEWDD DD DSN=XXXXXXX.A.B,DISP=SHR
// DD DSN=XXXXXXX.D.E.DISP=SHR
// DD DSN=ZZZZZZZ.X.Y,DISP=SHR
//OUTDD DD SYSOUT=(A)
//SYSIN DD *
SRCHFOR 'F210CU'
/* ----------------------------------------------------------------------------
but this is returning additiona results also it ios also listing the F210CUE whereas my requirement is to list only F210CU.
please suggest if anyone has idea regarding the same or any material if anyone has.any suggestion how i can achieve the same. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Try puttng a space between the U and the quotation-mark. . .
What you got are not additonal results - it is exactly what was asked for. . . |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
//SYSIN DD *
SRCHFOR 'F210CU',W
/*
Doc here, use ISPF to create JCL to see how to do it in batch. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
MBabu,
Will that include or exclude F210CU if it's followed by a period? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Are the 2 "hit" values "'F210CU '" and "'F210CU.'" or are there more possibilities? |
|
Back to top |
|
|
sandhya rani
New User
Joined: 05 Dec 2006 Posts: 22 Location: hyderabad
|
|
|
|
Hi,
GR8888...soluion given by MBABU working fine.Thanks a lotzzz for knowing the same.
Also thankx for all for responding to my query.....
Thanks & Regards,
Sandhya Rani |
|
Back to top |
|
|
|