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
 

 

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: 2233
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: 7989
Location: Bellevue, IA

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 Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 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


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