IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to escape characters in string in PL/I


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
fahir83

New User


Joined: 27 Jan 2006
Posts: 22

PostPosted: Wed Aug 30, 2006 12:12 pm
Reply with quote

Hi

I have to search for a particular string for example 'b'ring using IF condition, since we are using singe quotation(apostrophe ') to search for strings, i want to clarify how to search for the particular string 'b'ring since it have 2 apostrophes already. i want to know the escape character while searching for string.

the condition will be some thing like

if type = 'b'ring
do something....

Thanks in advance for your help
Back to top
View user's profile Send private message
Dariusz
Warnings : 1

New User


Joined: 11 Aug 2005
Posts: 27
Location: POLAND

PostPosted: Wed Aug 30, 2006 3:37 pm
Reply with quote

Hi.
I think,you can code one (') as a two.
For example:
IF SUBSTR(A,3,1)='''' THEN DO;
Regards.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top