10-08-2008 6:54 AM
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
10-08-2008 6:56 AM
hi,
declare another variable v3 and use like this
concatenate v1 v2 into v3 .
10-08-2008 6:57 AM
Hi,
Var1 = 'aaa'.
Var2 = 'bbb'.
Concatenate Var1 Var 2 into Var3.
Condense Var3.
Regards,
Swati
10-08-2008 6:58 AM
Hi,
CONCATENATE w_a w_b into w_c separated by space.
Thanks,
Phani Diwakar.
10-08-2008 6:58 AM
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.
10-08-2008 6:59 AM
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.
10-08-2008 6:59 AM
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.
10-08-2008 6:59 AM