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: 

problem with string operation

Former Member
0 Kudos

data: f1 type string.

iam giving input as follows

f1 = '|mahee'.

my output should be

'mahee'.

can u tell me how to do\.

Thanks

Maheedhar.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

data: f1 type string.

f1 = '|mahee'.

Possiblity one

Write: f1+1(5).

Or

DATA: LV1, LV2 type string.

SPLIT F1 at '!' in LV1 LV2.

WRITE: LV2.

if useful reward.

Vasanth

3 REPLIES 3

Former Member
0 Kudos

data: f1 type string.

f1 = '|mahee'.

Possiblity one

Write: f1+1(5).

Or

DATA: LV1, LV2 type string.

SPLIT F1 at '!' in LV1 LV2.

WRITE: LV2.

if useful reward.

Vasanth

Former Member
0 Kudos

Hi,

f1 = '|mahee'.

replace '|' with space into f1.

comdense f1.

write f1.

Regards

amole

anversha_s
Active Contributor
0 Kudos

hi,

data: f1 type string.

f1 = '|mahee'.

replace all occurrences of '|' in f1 with ' '.

condence f1.

write f1.

rgds

anver

pls mark points to all helpful answers