Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Print apostrophe

Former Member
0 Likes
536

Hello,

I want to print an apostrophe in a program. There is a special character that helps to recognise the character immediately after it as printable. Which is that character?

Regards,

Diana

Hello,

I want to print an apostrophe in a program. There is a special character that helps to recognise the character immediately after it as printable. Which is that character?

Regards,

Diana

2 REPLIES 2
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
472

Hello,

FAQ.

1.

CONSTANTS: C_APOS TYPE CHAR1 VALUE `'`. "--> String Literal
WRITE: C_APOS.

2.

CONSTANTS: C_APOS TYPE CHAR1 VALUE ''''. "--> Character Literal
WRITE: C_APOS.

There is a special character that helps to recognise the character immediately after it as printable

I think you are talking about the escape character & for an apostrophe ('), the escape character is an apostrophe itself 😄

BR,

Suhas

Read only

Former Member
0 Likes
472

Hi,

u can use like this.

u put "" before the apostrophe.

data: LINE(20) type c.

CONCATENATE 'It''' 's Hot' into line.

write:/ LINE.

another way

WRITE:/ 'You''ll be there.'.

Edited by: shambhu sharan pandey on Nov 5, 2009 12:40 PM