Application Development 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: 

concatination

Former Member
0 Kudos

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

KK07
Contributor
0 Kudos

hi,

declare another variable v3 and use like this

concatenate v1 v2 into v3 .

Former Member
0 Kudos

Hi,

Var1 = 'aaa'.

Var2 = 'bbb'.

Concatenate Var1 Var 2 into Var3.

Condense Var3.

Regards,

Swati

Former Member
0 Kudos

Hi,

CONCATENATE w_a w_b into w_c separated by space.

Thanks,

Phani Diwakar.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

hi

a = abc

b = defg

c type c.

CONCATENATE a b INTO c.

regards anil