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

concatination

Former Member
0 Likes
720

Dear Experts;

how to concatinate of two fields .

input session:

eg:

first name : aaa

last name: bbb

output session: aaabbb. please help me

regards.

raj

7 REPLIES 7
Read only

KK07
Contributor
0 Likes
634

hi,

declare another variable v3 and use like this

concatenate v1 v2 into v3 .

Read only

Former Member
0 Likes
634

Hi,

Var1 = 'aaa'.

Var2 = 'bbb'.

Concatenate Var1 Var 2 into Var3.

Condense Var3.

Regards,

Swati

Read only

Former Member
0 Likes
634

Hi,

CONCATENATE w_a w_b into w_c separated by space.

Thanks,

Phani Diwakar.

Read only

Former Member
0 Likes
634

Hi,

DATA: firstname type string,
           lastname type string,
           name type string.

first name = 'aaa'.
last name = 'bbb'.

CONCATENATE firstname lastname INTO NAME.

write: name.

thanx.

Read only

Former Member
0 Likes
634

The above answer is correct. It is also possible to concatentate v1 v2 into v2 if you don't want to declare a new variable.

Read only

0 Likes
634

Hi,

U can use like the below .

Declare a variale like full name .

first_name : aaa

last_name: bbb

Concatenate first_name Last_name into Full_name.

Code sample:

data: full_name type c.

first_name : aaa

last_name: bbb

Concatenate first_name Last_name into Full_name.

Read only

Former Member
0 Likes
634

hi

a = abc

b = defg

c type c.

CONCATENATE a b INTO c.

regards anil