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: 

general

Former Member
0 Kudos

hi,

i have doubt in basic.

for example : x = priya y = reddy.

i want output in z=prre.

how can i solve this query.

thanx and regrads

priya

6 REPLIES 6

Former Member
0 Kudos

hi,

chk the code below.

concateneate x0(2) y0(2) into z.

regards,

Navneeth K.

Former Member
0 Kudos

Hi,

Concatinate x+0(2) y+0(2) into Z.   " We are givign only first 2 charecters

Write Z.

Regards

Sudheer

Former Member
0 Kudos

hi priya,

use split and concatenate to do that.

regards,

prasant

Former Member
0 Kudos

hello priya,

this is what i made fr ur query:

REPORT ZTEMP_CJ5.

DATA: x type char8,

y type char8,

n type i,

z type string.

x = 'priya'.

y = 'reddy'.

n = 2.

concatenate x(n) y(n) into z.

write: z.

i just hope it helps u

Former Member
0 Kudos

hii

data : x type string value 'priyya',

y type string value 'reddy',

z type string.

Concatenate x0(2) y0(2) into Z.

write z.

reward if useful.

Former Member
0 Kudos

hi ,

data: x type s,

y type s,

z type s.

concatenate x0(2) y0(2) into z. [ x+0(2) means starting from 0th position 2 characters are added to ans same to y finally added to z]

write:/10 z.

if helpful reward some points.

with regards,

Suresh.A