|
Xu,
Are you looking for this?
data _null_;
MonthAsACharacter = put( month( today() ), z2. );
put MonthAsACharacter=;
run;
--
Jack N Shoemaker / JShoemaker@Accordant.net
Visit our patient communities at http://www.accordant.com or our corporate
site http://www.accordant.net
-----Original Message-----
From: Yanming X. Xu [mailto:yxxu@HOUSEHOLD.COM]
Sent: Wednesday, August 23, 2000 4:43 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: month="08" instead of month=08
Dear SASers,
I was playing and puzzeled with this question:
137 data _null_;
138 mth=quote(compress('0'||month(today())));
139 call symput('mth', mth);
140 run;
NOTE: Numeric values have been converted to character values at the places
given
by:
(Line):(Column).
138:25
NOTE: The DATA statement used 0.02 seconds.
141
142
143 DATA _NULL_;
144 put "month=" &mth;
145 run;
month=08
NOTE: The DATA statement used 0.02 seconds.
How would I make it: month="08"? or should I say what's the other
alternative
ways to make it?
Appreciate any help!
|