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

String Manipulation splitting

Former Member
0 Likes
449

Hi , I have a peculiar issue.

There is a string of length 10.

it will always start with a numeric value however it can have alphanumeric charaters there after.

for example :

1

1A

2BC

23A

123B etc.....

I have to pick only the numeric values for comparison

.

like 1 ,1 , 2,23, 123 with another field that holds only numeric characters.

how can I achieve this.

THanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
423

take a NUMC variable with same length.... assign this value to this new NUMC variable....

Amitava

3 REPLIES 3
Read only

Former Member
0 Likes
424

take a NUMC variable with same length.... assign this value to this new NUMC variable....

Amitava

Read only

Former Member
0 Likes
423

search on help for regex

kind regards

arthur de smidt

Read only

Former Member
0 Likes
423

Try this,

data: lv_char type c length 20 value '12ab34c5'.

data: lv_num type n length 10.

lv_num = lv_char.

write lv_num.

Thanks,

SKJ