<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS 9.4 - ODS Header - Timestamp behaviour in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556346#M9814</link>
    <description>Try the suggestion I provided. It will embed the execution time and date&lt;BR /&gt;</description>
    <pubDate>Mon, 06 May 2019 03:57:02 GMT</pubDate>
    <dc:creator>ghosh</dc:creator>
    <dc:date>2019-05-06T03:57:02Z</dc:date>
    <item>
      <title>SAS 9.4 - ODS Header - Timestamp behaviour</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556312#M9803</link>
      <description>&lt;P&gt;Is there a way to get the timestamp in the Header of .RTF output files to report the actual time the job was submitted?&amp;nbsp; It appears the date which is inserted is the time the SAS session began (?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "-- title here --";
ods noptitle;
ods rtf startpage=now;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which, on May 5, produces:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;05:06 Saturday, May 4, 2019&amp;nbsp; 3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;P&gt;[ long (LONG) time SAS user, first time poster&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; ]&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2019 23:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556312#M9803</guid>
      <dc:creator>rpinder</dc:creator>
      <dc:date>2019-05-05T23:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 - ODS Header - Timestamp behaviour</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556325#M9808</link>
      <description>&lt;P&gt;Just put&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;title "Time/Date: %sysfunc(time(),time.) %sysfunc(date(),worddate.)";&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 02:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556325#M9808</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-05-06T02:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 - ODS Header - Timestamp behaviour</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556330#M9809</link>
      <description>&lt;P&gt;Thanks for this workaround - but the 'title' is used/changed on each component I send to the ODS system (mainly output from proc freq's and contents).&amp;nbsp; I inserted those three lines to show the simple syntax I'm using in the program.&amp;nbsp; I dont want timestamps inside titles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rather, I believe there is somewhere a built in behavior of ODS which default labels each page with a timestamp.&amp;nbsp; I want to know if this a bug, or intended feature:- the timestamp is the time SAS session is started, rather the time the job is executed.&amp;nbsp; (and, I'm lookin for the latter behavior )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;rich&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 02:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556330#M9809</guid>
      <dc:creator>rpinder</dc:creator>
      <dc:date>2019-05-06T02:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 - ODS Header - Timestamp behaviour</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556331#M9810</link>
      <description>&lt;P&gt;use the datetime() returns&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: Times New Roman; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;SAS datetime value at moment of execution in NNNNNNNNNN.N&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;here is the link.&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;A href="https://v8doc.sas.com/sashtml/lrcon/zenid-63.htm" target="_blank"&gt;https://v8doc.sas.com/sashtml/lrcon/zenid-63.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 02:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556331#M9810</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-05-06T02:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 - ODS Header - Timestamp behaviour</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556332#M9811</link>
      <description>&lt;P&gt;If you have the DATE option set then the normal behavior is to display the date/time that the SAS session started.&amp;nbsp; If you set the option to NODATE instead then no date/time is added to the first title line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you seeing something different in RTF output than you would see in normal listing (text only) output or other ODS destinations?&lt;/P&gt;
&lt;P&gt;Or are you asking to use a different date/time for the title?&lt;/P&gt;
&lt;P&gt;If so what date/time would you like to use?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 02:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556332#M9811</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-06T02:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 - ODS Header - Timestamp behaviour</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556336#M9812</link>
      <description>&lt;P&gt;Could suggest a couple of options&lt;EM&gt;.&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Title for the date stamp and subsequently use Title2, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My preferred approach to to set up the report as an ods layout (for pdf and rtf reports) and explicitly define the ods regions for header and footer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 03:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556336#M9812</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-05-06T03:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 - ODS Header - Timestamp behaviour</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556344#M9813</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;nbsp;....normal behavior is to display the date/time that the SAS session started.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for confirming.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting - IF I specify the output rtf (see below), it always gives same behaviour I've reported (session start time).&amp;nbsp; IF I leave the output file OPEN in an editor, run same code again, SAS spawns a second .rtf (sasrtf.rtf - likely a default?), which&amp;nbsp; EACH time the job runs, gets the CURRENT TIME inserted !&amp;nbsp; &amp;nbsp;Wild.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all, I'll work with what I've learned.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file  = "C:\temp\test.rtf" sasdate style = dove
bodytitle startpage = no;

title "Title - top of each output set";
ods noptitle;
ods rtf startpage=now;

data temp;
set sashelp.bei;
keep trees;
run;


proc freq data = temp;
title2 "more details added to title1";
run;

ods rtf close;
run;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 03:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556344#M9813</guid>
      <dc:creator>rpinder</dc:creator>
      <dc:date>2019-05-06T03:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 - ODS Header - Timestamp behaviour</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556346#M9814</link>
      <description>Try the suggestion I provided. It will embed the execution time and date&lt;BR /&gt;</description>
      <pubDate>Mon, 06 May 2019 03:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556346#M9814</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-05-06T03:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 - ODS Header - Timestamp behaviour</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556408#M9819</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/43259"&gt;@long&lt;/a&gt; time programmer hmm&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 13:12:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-9-4-ODS-Header-Timestamp-behaviour/m-p/556408#M9819</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-05-06T13:12:24Z</dc:date>
    </item>
  </channel>
</rss>

