Hi,
I need to use an existing date in a dataset and then create a new variable which shows it as the first of the month i.e.
if the logged_date is 05OCT2012 I need the new variable to show 01OCT2012 - is there a way to do this??
I'd really appreciate any help anyone could give me.
Thanks
:-)
I'm trying to run a report each week that includes data for Monday to Sunday (for the previous week).
I've plagorised some code to get the dates for last week, but, I'm stuggling to get this to work when using the macros in my code.
This is what I've used for obtaining dates...
data _null_;
i...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.