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

general

Former Member
0 Likes
775

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
Read only

Former Member
0 Likes
744

hi,

chk the code below.

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

regards,

Navneeth K.

Read only

Former Member
0 Likes
744

Hi,

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

Write Z.

Regards

Sudheer

Read only

Former Member
0 Likes
744

hi priya,

use split and concatenate to do that.

regards,

prasant

Read only

Former Member
0 Likes
744

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

Read only

Former Member
0 Likes
744

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.

Read only

Former Member
0 Likes
744

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