| Date: | Wed, 5 Jan 2000 09:55:58 -0500 |
| Reply-To: | msz03@HEALTH.STATE.NY.US |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | msz03@HEALTH.STATE.NY.US |
| Subject: | INVALUES |
|
| Content-Type: | text/plain; charset=us-ascii |
|---|
Hi. If I try the following in V6.12 and in V8 (both under Windows '98), I
get two different results. I always assumed that the result I got in V6.12
is what I should get (since I never saw SAS behave otherwise). Any
opinions on what result is correct?
proc format;
invalue $test
'100'-'199'='ONE-HUNDRED'
other='NOT ONE-HUNDRED'
;
run;
data test;
length x $20;
input
@1 x $test3.
@1 y 3.
;
datalines;
100
200
run;
proc print data=test;
run;
Results....
In V6.12, X has a length of 20 and PROC PRINT shows...
OBS X Y
1 ONE-HUNDRED 100
2 NOT ONE-HUNDRED 200
In V8, X still has a length of 20, but PROC PRINT shows...
Obs x y
1 ONE 100
2 NOT 200
Mike Zdeb
NYS Department of Health
ESP Tower-Room 1811
Albany, NY 12237
P:518/473-2855 F:630/604-1475
|