Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Match records - scdinesh DFSORT/ICETOOL 6 Wed Feb 22, 2017 5:02 am
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us