Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to print a string having sinngle quote(') in it.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
pkd2k5

New User


Joined: 30 Jul 2005
Posts: 1

PostPosted: Wed Aug 03, 2005 12:52 am    Post subject: How to print a string having sinngle quote(') in it.
Reply with quote

If I want to print a string like " sandy's home" in PL/I what will be the syntax? Please write down the code.
Back to top
View user's profile Send private message
References
PostPosted: Wed Aug 03, 2005 12:52 am    Post subject: Re: How to print a string having sinngle quote(') in it. Reply with quote

hsourabh

New User


Joined: 24 May 2005
Posts: 12
Location: Z?rich

PostPosted: Fri Sep 09, 2005 3:31 pm    Post subject:
Reply with quote

Hi pkd,
This code's surely gonna work, try it out


FUN:PROC OPTIONS(MAIN);
DCL QUOTE CHAR(12) INIT('');
QUOTE = 'SANDY'!!'7D'X!!'S HOME';
PUT SKIP LIST(QUOTE);
END FUN;


Thanks,
Sourabh
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1