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
SAS Super FREQ
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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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