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
 
Search string that include '

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Search string that include '
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: 2285
Location: @my desk

PostPosted: Thu Mar 05, 2009 6:22 pm    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Thu Mar 05, 2009 6:24 pm    Post subject:
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    Post subject:
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    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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
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

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