BookmarkSubscribeRSS Feed
odmhx
Calcite | Level 5
I am using the options date on the .rtf report to display the report creation date/time. But when I open the report later on, the date/time changes to the date/time of report opening, not of report creation.

How can I write the date/time to the .rtf file and make it stay, instead of dynamically change?

Please help
6 REPLIES 6
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
What code is generating the "date"? There are many possible techniques, so it's best that you share your particular SAS code.

Scott Barry
SBBWorks, Inc.
odmhx
Calcite | Level 5
I was using Default Options, i.e, Options Date.
Doc_Duke
Rhodochrosite | Level 12
If you use
OPTIONS DATE;
to put the date in the title line in the RTF destination, it uses the RTF "current date" function. Argh! It's a "feature" that I really dislike.

To get the actual date in the title or footer, use the &sysdate macro variable in the TITLE or FOOTER and
OPTIONS NODATE;
odmhx
Calcite | Level 5
> If you use
> OPTIONS DATE;
> to put the date in the title line in the RTF
> destination, it uses the RTF "current date" function.
> Argh! It's a "feature" that I really dislike.
>
> To get the actual date in the title or footer, use
> the &sysdate macro variable in the TITLE or FOOTER
> and
> OPTIONS NODATE;

Thank you very much for your message. I'll use the &sysdate.
Cynthia_sas
Diamond | Level 26
Hi:
You also might want to check out the SASDATE option for the ODS RTF destination:
http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002233360.htm#a003137833

cynthia
odmhx
Calcite | Level 5
> Hi:
> You also might want to check out the SASDATE
> option for the ODS RTF destination:
> ttp://support.sas.com/documentation/cdl/en/odsug/61723
> /HTML/default/a002233360.htm#a003137833
>
> ynthia

Thank you very much, Synthia, for the link.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 4316 views
  • 0 likes
  • 4 in conversation