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
|