IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

to search exact string match in PDS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Mon May 18, 2009 1:09 am
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: 400
Location: Mumbai

PostPosted: Mon May 18, 2009 8:25 am
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
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

Moderator Emeritus


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

PostPosted: Mon May 18, 2009 9:06 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top