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: 1239
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 Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm
No new posts Which function does the Ampersand (&a... Andi1982 PL/I & Assembler 3 Wed Aug 24, 2016 2:05 pm


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