View previous topic :: View next topic
|
Author |
Message |
rammraju
New User
Joined: 05 Mar 2005 Posts: 65 Location: Hyderabad
|
|
|
|
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 |
|
|
rammraju
New User
Joined: 05 Mar 2005 Posts: 65 Location: Hyderabad
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
|