f



Re: datepart autoformat in a macro #2

 Well, is that a date format?

 Can it be done without concatenating the quotes and d?.



 Your
 question was, what dateformat would return the value in the format
'22Jun2003'd ? with quotes and D, all of it?
                                 ^^^^^^^^^^^^^

Prasad Ravi





                         Arto Raiskio
                         <arto@RAISKIO.COM>     To:    SAS-L@LISTSERV.UGA.EDU
                         Sent by: "SAS(r)       cc:
                         Discussion"            Subject: Re: datepart autoformat in a macro
                         <SAS-L@LISTSERV.UGA.E
                         DU>


                         06/23/2003 12:33 PM
                         Please respond to
                         Arto Raiskio






"Prasad S Ravi"  wrote
> I don't recall any dateformat which will do that for you.

rob abelson suggested this and it appears to do the trick
a = "'" ||put( intnx ( 'day', date(), -1), date9. )||"'d";
0
6/23/2003 8:25:38 PM
comp.soft-sys.sas 142828 articles. 3 followers. Post Follow

0 Replies
802 Views

Similar Articles

[PageSpeed] 44

Reply: