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 2011, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 7 Jan 2011 16:42:52 -0500
Reply-To:     Chang Chung <chang_y_chung@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Chang Chung <chang_y_chung@HOTMAIL.COM>
Subject:      Re: The d in w.d informat
Comments: To: Joe Matise <snoopy369@GMAIL.COM>

On Fri, 7 Jan 2011 13:42:42 -0600, Joe Matise <snoopy369@GMAIL.COM> wrote: ... >SAS will normally read the decimal in correctly if it IS placed in the data, >unless you ask it to override that by specifying a d in the w.d readin. >Using the .d it will literally divide your numbers by that power of 10. ... hi, Joe, I don't think you can override the decimal point in the raw input. If there is a decimal point in the raw input, then the .d part of the informat does nothing. Cheers, Chang

data _null_; infile cards firstobs=2; input raw $char10. @1 val :5.2; put raw= val=; cards; ----+----1 123456 1.3456 ; run; /* on log raw=123456 val=1234.56 raw=1.3456 val=1.3456 */


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