Data work.my_data_file; Result_1 = Notdigit('123456789A'); Result_2 = Notdigit('A123456789'); Result_3 = Notdigit('.001 ABCDE'); Run; |
What's happening in the script above?
Variable | Input | Output | Description |
---|---|---|---|
Result_1 | 123456789A | 10 | Returns the position count of the Character A |
Result_2 | A123456789 | 1 | Also returns the position count of the Character A |
Result_3 | .001 ABCDE | 1 | Returns the position count the period |
See also; AnyDigit Function
Kevin Regan
Have an article, idea, found a typo, want to contribute? Shoot me an email
Here
Below are links to some Udemy Data Science Courses. I've been using Udemy for a number of years now, and I've found their courses super helpful, maybe you will also.