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
 
to search exact string match in PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sandhya rani

New User


Joined: 05 Dec 2006
Posts: 22
Location: hyderabad

PostPosted: Mon May 18, 2009 12:10 am    Post subject: to search exact string match in PDS
Reply with quote

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
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon May 18, 2009 1:09 am    Post subject:
Reply with quote

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
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Mon May 18, 2009 8:25 am    Post subject: Reply to: to search exact string match in PDS
Reply with quote

//SYSIN DD *
SRCHFOR 'F210CU',W
/*

Doc here, use ISPF to create JCL to see how to do it in batch.
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: Mon May 18, 2009 8:49 am    Post subject:
Reply with quote

MBabu,
Will that include or exclude F210CU if it's followed by a period?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon May 18, 2009 9:06 am    Post subject:
Reply with quote

Hello,

Are the 2 "hit" values "'F210CU '" and "'F210CU.'" or are there more possibilities?
Back to top
View user's profile Send private message
sandhya rani

New User


Joined: 05 Dec 2006
Posts: 22
Location: hyderabad

PostPosted: Mon May 18, 2009 12:08 pm    Post subject:
Reply with quote

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
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 Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts change string before sertan string anatol DFSORT/ICETOOL 8 Tue Aug 15, 2017 5:43 pm

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