Hi.
I have created a report using ods layout. I would like the date the report was run to appear on the report. Does anyone know how to do this?
Thank you for your help.
Include it in the title or footnote somehow? The macro variable &sysdate holds the date.
footnote1 "Report run on: &sysdate.";
EDIT: sysdate doesn't change during a session, I'm not sure if you're running the same session day to day it would change. Anyways you can use the date() function to get the date if required.
footnote1 "Report run on: %sysfunc(today(), date9.)";
Thank you Reeza.
I am using it within an ods txt.
It is showing up as 06JAN16.
Is there a way I can get it to appear as January 06, 2016?
thank you again.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.