LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2000, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments:   To: "msz03@HEALTH.STATE.NY.US" <msz03@HEALTH.STATE.NY.US>
Content-Type:   text/plain

Mike,

I don't have V8, but I think in your data step [data test;......; run;] you should include: 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 Groeneveld

> -----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 > 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


Back to: Top of message | Previous page | Main SAS-L page