View previous topic :: View next topic
|
Author |
Message |
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 70 Location: Turkey
|
|
|
|
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 |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
How about trying this?
Code: |
//SYSIN DD *
SRCHFOR 'A''bc' |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Typically in JCL tic marks inside the quotes around the string need to be doubled. |
|
Back to top |
|
|
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 70 Location: Turkey
|
|
|
|
Yes it is working, thanks... |
|
Back to top |
|
|
|