LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (January 2000, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments:   To: sas-l@uga.cc.uga.edu
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


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