From: Henry on 9 Mar 2010 23:33 Hello there, I was wondering if there is a function that can help us to identify if there is a letter (no matter which one from A-Z) in a variable. Of course the variable will be defined as character since it contains some letters in some observations. So, just wonder if there is a function to identify it as 0 or 1? In other words, can I get a new indicator = 1 if the variable "answer" contains any letter from A to Z. and = 0 if not containing any letter? Thanks a lot! DATA OLD; INPUT ID $ 1-3 ANSWER $ 5-9; DATALINES; 001 ACBED 002 11 003 12 004 zx ;
|
Pages: 1 Prev: tickvalueformat in SAS sgplot & proc template Next: Proc Format |