| Date: | Fri, 9 Jan 1998 18:04:37 -0500 |
| Reply-To: | Sung-Il Cho <sungil@hohp.harvard.edu> |
| Sender: | "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU> |
| From: | Sung-Il Cho <sungil@HOHP.HARVARD.EDU> |
| Subject: | Q: check missing |
| Content-Type: | TEXT/PLAIN; charset=US-ASCII |
|---|
Hi there,
I may be missing something pretty basic, but
is there a simple way to check missing value with a few statements
regardless whether the variable is numeric or character ?
for example, could one make a macro like the following,
both for numeric and character variable ?
%macro check(var);
if &var is missing then do somthing...
%mend;
Using &var=. or &var=' ', seems to give an error
message for the opposite type.
Thanks in advance!
Sung-il.
|