LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (August 2009, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 6 Aug 2009 02:09:45 -0700
Reply-To:   Anaconda <rune@FASTLANE.NO>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Anaconda <rune@FASTLANE.NO>
Organization:   http://groups.google.com
Subject:   Possible to transform the macro variable resolving to 01JAN2009 to a SAS date format?
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset=ISO-8859-1

Can the macro variable 01JAN2009 be transformed to appear as 01.01.2009 by means of my selfdeveloped date format &_of. ?

If you look at this data step, you will see an example of how my date format &_OF works:

data _null_; call symput ('JP_Startdate', put(today(), &_of.)); run;

%put &JP_Startdate;

%put &_of; * From the log; 55 %put &JP_Startdate; 06.08.2009

Now, let us say that i have a macro variable %let JP_Start = 01JAN2009;

Is there a way that today() can be replaced by &JP_Start in a data _null_ step like the one above?

If not, does anyone have a suggestion how to do this?

- Anaconda


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