View previous topic :: View next topic
|
Author |
Message |
rohanthengal
Active User
Joined: 19 Mar 2009 Posts: 206 Location: Globe, India
|
|
|
|
Hi Friends,
Any way to search string
in one library.
If we use SRCHFOR
then it gives error.
Can anyone please guide to search string '82 in PDS ?
I am getting error since closing single quote is not provided in SRCHFOR. I do not want to provide closing single quote since search criteria is limited to '82. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Try using hex-notation instead -
SRCHFOR X'7DF8F2'
HTH.... |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
A quick google found...
.. and it works !
Garry. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1315 Location: Vilnius, Lithuania
|
|
|
|
Garry Carroll wrote: |
A quick google found...
.. and it works ! |
Gee, what a surprise... Why couldn't the TS think of something this complicated... |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
It seems to me a bug unless Garry's method is documented somewhere on IBM's manual. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Within TSO and many other parts of z/OS, two single quote marks (tics) in a string are replaced by one. This can be seen in the JCL Reference manual in section 4.2 (emphasis added by me):
Quote: |
Special Characters in Parameters
The syntax or parameter description indicates if the variable that you code can contain special characters or not. Parameters and subparameters that can contain special characters not used for syntactical functions usually must be enclosed in apostrophes, for example, ACCT='123+456'. Code each apostrophe that is part of the parameter or subparameter as two consecutive apostrophes, for example, code O'NEIL as 'O''NEIL'. |
|
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
A bug that cracks me up, its been this way for 50 years, look at a good assembler or rexx manual. |
|
Back to top |
|
|
|