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

Search string that include '


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ozgurseyrek

New User


Joined: 22 Feb 2008
Posts: 70
Location: Turkey

PostPosted: Thu Mar 05, 2009 6:12 pm
Reply with quote

Hi,
I want to search text that include ' charcter.
I have used just like the book described..

Quote:
SRCHFOR 'A'bc'
Searches for string "A'bc".


sample JCL;
Code:
//SRCHST  EXEC PGM=ISRSUPC,         
//            PARM=(SRCHCMP,       
//            'ANYC')               
//NEWDD  DD DSN=PDS1.XXX.YYY,       
//          DISP=SHR               
//OUTDD  DD SYSOUT=(A)             
//SYSIN  DD *                       
SRCHFOR  'A'bc'                     


that JCL takes Error. (RC=28)
Am I doing something wrong?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Mar 05, 2009 6:22 pm
Reply with quote

How about trying this?
Code:
//SYSIN  DD *                       
SRCHFOR  'A''bc' 
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Mar 05, 2009 6:24 pm
Reply with quote

Typically in JCL tic marks inside the quotes around the string need to be doubled.
Back to top
View user's profile Send private message
ozgurseyrek

New User


Joined: 22 Feb 2008
Posts: 70
Location: Turkey

PostPosted: Thu Mar 05, 2009 7:04 pm
Reply with quote

Yes it is working, thanks...
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
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
Search our Forums:

Back to Top