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 (August 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 1 Aug 2008 11:48:47 +0530
Reply-To:     Anindya Mozumdar <anindya.lugbang@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Anindya Mozumdar <anindya.lugbang@GMAIL.COM>
Subject:      Reading data using informats
Content-Type: text/plain; charset=ISO-8859-1

All, Yesterday I found a gap in my knowledge of the basics after having done a lot of "advanced" programming. Consider the following codes -

1. Code 1

data test; input x :dollar9.; format x dollar9.4; datalines; $400.0000 $320.4434 $112.3354 ; run;

proc print; run;

2. Code 2

data test; input x :dollar9.4; format x dollar9.4; datalines; $400.0000 $320.4434 $112.3354 ; run;

proc print; run;

How is the informat specified in the input statement being used? In both cases, proc print gives the same output - so how is the "4 decimal places" specified in the informat being used?

Thanks, Anindya


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