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
 

 

Using Outrec how to display a string having quote

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
rammraju

New User


Joined: 05 Mar 2005
Posts: 65
Location: Hyderabad

PostPosted: Thu Feb 22, 2007 6:21 pm    Post subject: Using Outrec how to display a string having quote
Reply with quote

Hi,
Using Outrec I am trying to display a string which has a single quote in it. I am getting error, can some one please help me in this. Following is my code

Code:
OUTREC FIELDS=(15:C'XYZ'sBook',1,10,25X)


Actually I wan to display the string XYZ'sBook starting in column 15 and then a data after that.

Thanks in advance

With Regards,
Back to top
View user's profile Send private message

rammraju

New User


Joined: 05 Mar 2005
Posts: 65
Location: Hyderabad

PostPosted: Thu Feb 22, 2007 7:48 pm    Post subject: Re: Using Outrec how to display a string having quote
Reply with quote

Got the answer to my question...

we have to use " if we have to print ' in the middle of a string. So my code would be

Code:
OUTREC FIELDS=(15:C'XYZ"sBook',1,10,25X)


Thanks,
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Thu Feb 22, 2007 10:19 pm    Post subject:
Reply with quote

Right. Note that's an apostrophe ('), not a quote (") and you need to use two apostrophes within a literal to get one apostrophe.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
This topic is locked: you cannot edit posts or make replies. DSList (3.4) cannot display Chinese c... jacobdng TSO/ISPF 4 Wed Oct 05, 2016 2:51 pm
No new posts SORT- outrec ram_vizag DFSORT/ICETOOL 10 Tue Sep 27, 2016 12:50 am


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