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 (May 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 9 May 2002 13:38:52 -0400
Reply-To:     diskin.dennis@KENDLE.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         diskin.dennis@KENDLE.COM
Subject:      Re: Again: A tiny question?
Comments: To: amy <amywang11790@YAHOO.COM>
Content-type: text/plain; charset=us-ascii

Amy,

Since the first month is almost always 1 just: %let p_cur_mth= %sysfunc( today(), year4. )01;

Dennis Diskin

From: amy <amywang11790@YAHOO.COM>@LISTSERV.UGA.EDU> on 05/09/2002 01:28 PM

Please respond to amy <amywang11790@YAHOO.COM>

Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>

To: SAS-L@LISTSERV.UGA.EDU cc:

Subject: Again: A tiny question?

%let p_cur_mth= %sysfunc( today(), yymmn6. ); This works well,

maybe a silly question, but how can I get the first month of current year,i.e.200201: %let p_cur_mth=????????????;

TIA, Amy

-----Original Message----- From: amy To: SAS-L@LISTSERV.UGA.EDU Sent: 5/9/02 11:14 AM Subject: A tiny question

Hi,all Basically, I want to use a variable to get the current month in the format(p_cur_mth=200205);

I did the following: %let p_cur_mth=input(put(year(today()),$4.)||put(month(today()),$2.)),6.); It does not work well.

Thanks for any input, Amy


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