You can use the SUBSTR function to look at the second character and test to see
if it's alpha. Or, not a numeric (which takes less typing and may just do what
if substr(yourvar,2,1) not in('0','1','2','3','4','5','6','7','8','9');
|Bob Abelson |"Original thought is like original sin -|
|Westat |both happened before you were born to |
|An Employee-Owned Research |people you could not possibly have met."|
|Corporation | |
|ABELSOR@westat.com |- Fran Lebowitz |
Subject: Variable specifics
Author: Gina Yount <GINA.YOUNT@DFAS.MIL>
Date: 10/12/1999 1:02 PM
I'm very new to SAS and have been looking in books, but have not found a way
to do the following.
I have a 4 digit variable that is set as a character string. I'm looking
for all observations where the second digit is an alpha character.
I'd appreciate any guidance.