| 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? |
|
| 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
|