As the first step in the decommissioning of the site has been converted to read-only mode.

Here are some tips for How to share your SAS knowledge with your professional network.

Tips:Finding the Position of the First Non-Digit in a String

From sasCommunity
Jump to: navigation, search

To find the position of the first non-digit character in a string, you can use the SAS function notdigit

For example, the value of Y would be equal to 3 in the following:

data test;
    RM_ID = '01@24$';
    Y = notdigit(trim(RM_ID));

If the whole string contains only numbers, then the value of Y would be equal to zero.

....see also

Submitted by Koo Ping Shung. Contact me at my Discussion Page.