|Date: ||Tue, 11 Jan 2000 13:02:31 +0100|
|Reply-To: ||Jim Groeneveld <J.Groeneveld@ITGROUPS.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||Jim Groeneveld <J.Groeneveld@ITGROUPS.COM>|
|Subject: ||Re: INVALUES|
I don't have V8, but I think in your data step [data test;......; run;] you
FORMAT X $Test20.;
Let me know if that works.
Regards - Jim.
Y. Groeneveld, MSc IMRO TRAMARKO tel. +31 412 407 070
senior statistician, P.O. Box 1 fax. +31 412 407 080
head IT department 5350 AA BERGHEM IMRO TRAMARKO: a CRO
J.Groeneveld@ITGroups.com the Netherlands in clinical research
"My computer thinks it's being tested again and lies doggo." - Jim
> -----Original Message-----
> From: msz03@HEALTH.STATE.NY.US [SMTP:msz03@HEALTH.STATE.NY.US]
> Sent: Wednesday, January 05, 2000 3:56 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: INVALUES
> 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
> is what I should get (since I never saw SAS behave otherwise). Any
> opinions on what result is correct?
> proc format;
> invalue $test
> other='NOT ONE-HUNDRED'
> data test;
> length x $20;
> @1 x $test3.
> @1 y 3.
> proc print data=test;
> 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