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

Concatenate statement

Former Member
0 Likes
545

Hi All ,

How can I do the following

Value = 10 in some variable of C

concatenate value '='' '10' '''

Question is how can I put ' ' before & after 10 in concatenate statement ??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
523

Hello,

Use four ' (single quotes) before and after the variable.

CONCATENATE 'Value = ' '''' var1 '''' INTO wrk_test SEPARATED BY space.

Regards,

Manoj

5 REPLIES 5
Read only

Former Member
0 Likes
524

Hello,

Use four ' (single quotes) before and after the variable.

CONCATENATE 'Value = ' '''' var1 '''' INTO wrk_test SEPARATED BY space.

Regards,

Manoj

Read only

Former Member
0 Likes
523

concatenate '' '' '10' '' '' into variable.....This will append space10space.

Read only

Former Member
0 Likes
523

Hi

Here is a sample:

data: name(10) type c value '''100'''.

write: name.

output is : '100'

Regards

Surya.

Read only

Former Member
0 Likes
523

Hi,

Try this,

May need some more corrections...!!

data: num10(10) type c,

num2(2) type c value '10'.

concatenate '''='''' ''' num2 ''' ''''' into num10.

This gives num10 = '='' '10'

Read only

Former Member
0 Likes
523

I guess that you need the space in between the fields

then what you need to do is say

<b>concatenate 'value' '=' '10' into ws_text separated by space.</b>

this will give you the required spaces.