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 2000, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 23 Aug 2000 17:12:50 -0400
Reply-To:   Jack Shoemaker <JShoemaker@ACCORDANT.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Jack Shoemaker <JShoemaker@ACCORDANT.NET>
Subject:   Re: month="08" instead of month=08
Comments:   To: "yxxu@HOUSEHOLD.COM" <yxxu@HOUSEHOLD.COM>
Content-Type:   text/plain; charset="windows-1252"

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!


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