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

CONCAT '

vsubbakrishna
Participant
0 Likes
806

result string 'hello'

is it possible to concat <b>'</b> ( apostrophie) and text and again<b> '</b> programatically.

kris.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
720

try this


data : text(10).

concatenate '''' 'hello' '''' into text.
write : / text.

regards

shiba dutta

6 REPLIES 6
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
720

Hi,

DATA text type string.

CONCATENATE '''' 'hello' '''' into text.

Single quote can be concatenated by typeing it twice.

Here '''' are required as you need to put a character between two quotes '' and to display ' you need to escape its special behaviour by typing it twice.

Regards,

Sesh

Read only

Former Member
0 Likes
720

data : str type string.

concatenate str '''' 'hello' '''' into str.

write str.

Regards,

Himanshu

Read only

former_member189059
Active Contributor
0 Likes
720

Try this

data: text1(10) value 'hello'.
data: text2(10).

concatenate '''' text1 '''' into text2.
write:/ text2.

Read only

Former Member
0 Likes
721

try this


data : text(10).

concatenate '''' 'hello' '''' into text.
write : / text.

regards

shiba dutta

Read only

Former Member
0 Likes
720

hello kris,

followin is the code....

DATA: t1(10) TYPE c VALUE 'hello',

t2 TYPE c VALUE '''',

result type string.

CONCATENATE t2 t1 t2

INTO result SEPARATED BY space.

write:/ result.

Regards,

Roshani

Read only

0 Likes
720

THANKS ALL...