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
 

 

Need help on searching '82 in SRCHFOR

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
rohanthengal

Active User


Joined: 19 Mar 2009
Posts: 176
Location: Pune, Maharashtra, India

PostPosted: Thu Aug 27, 2015 4:56 pm    Post subject: Need help on searching '82 in SRCHFOR
Reply with quote

Hi Friends,

Any way to search string
Code:
'82
in one library.
If we use SRCHFOR
Code:
 "'82"
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
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Aug 27, 2015 5:36 pm    Post subject: Reply to: Need help on searching '82 in SRCHFOR
Reply with quote

Try using hex-notation instead -

SRCHFOR X'7DF8F2'

HTH....
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 988
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Aug 27, 2015 6:00 pm    Post subject:
Reply with quote

A quick google found...


Code:
srchfor '''82'


.. and it works !

Garry.
Back to top
View user's profile Send private message
prino

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Thu Aug 27, 2015 9:29 pm    Post subject:
Reply with quote

Garry Carroll wrote:
A quick google found...


Code:
srchfor '''82'


.. and it works !

Gee, what a surprise... Why couldn't the TS think of something this complicated...
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Fri Aug 28, 2015 2:23 am    Post subject:
Reply with quote

It seems to me a bug unless Garry's method is documented somewhere on IBM's manual. icon_razz.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7905
Location: Bellevue, IA

PostPosted: Fri Aug 28, 2015 3:32 am    Post subject:
Reply with quote

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
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Fri Aug 28, 2015 8:02 pm    Post subject:
Reply with quote

A bug that cracks me up, its been this way for 50 years, look at a good assembler or rexx manual.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISRSUPC SRCHFOR tool - Query while us... soundarr JCL & VSAM 7 Wed Mar 16, 2016 8:55 pm
This topic is locked: you cannot edit posts or make replies. MEMOAPIX - Searching for a Reference ... Steve Coalbran All Other Mainframe Topics 13 Wed Feb 03, 2016 12:01 pm
No new posts SRCHFOR a text in a set of files rakhin DFSORT/ICETOOL 7 Fri Mar 13, 2015 12:49 pm
No new posts SRCHFOR within SDSF list Pedro TSO/ISPF 10 Tue Sep 30, 2014 9:42 pm
No new posts Trying to use SRCHFOR using a macro Soumick Sarkar CLIST & REXX 11 Wed Mar 26, 2014 12:40 pm


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