Skip to Content
author's profile photo Former Member
Former Member

String Manipulation splitting

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 03:15 PM

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

    Amitava

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 24, 2008 at 03:15 PM

    search on help for regex

    kind regards

    arthur de smidt

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 03:18 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.