<?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: Date time stamp in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440091#M109878</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/166951"&gt;@ShrutiD&lt;/a&gt;&amp;nbsp; Your question has motivated me to see if there is an option to control the date/time info on listings and logs.&amp;nbsp; And I've learned that there is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OPTIONS NODTRESET;&lt;/P&gt;
&lt;P&gt;means that the session start date and time are used in your procedure printout.&amp;nbsp; This is the sas default on all the systems I have used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OPTIONS DTRESET;&lt;/P&gt;
&lt;P&gt;means that the time of procedure execution is used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The options statement is global.&amp;nbsp; I.e. it doesn't belong to a proc step or data step.&amp;nbsp; When you issue it, all subsequent steps honor it.&lt;/P&gt;
&lt;P&gt;So put OPTIIONS DTREST prior to your proc's of interest.&amp;nbsp; And, if you want, it turns out you can go back to the sas default by issuing OPTIONS NODTRESET after those proc's.&lt;/P&gt;</description>
    <pubDate>Sun, 25 Feb 2018 23:12:12 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2018-02-25T23:12:12Z</dc:date>
    <item>
      <title>Date time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440006#M109840</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me in changing the date, time stamp set for SAS 9.1 as it is incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 07:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440006#M109840</guid>
      <dc:creator>ShrutiD</dc:creator>
      <dc:date>2018-02-25T07:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440008#M109842</link>
      <description>&lt;P&gt;You give give us fewer details but that would be hard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you have? What do you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And provide a proc contents of the table if you are talking about data sitting in a table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 08:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440008#M109842</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-02-25T08:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440009#M109843</link>
      <description>&lt;P&gt;Also, I marked your other -identical- question as spam to avoid duplicates.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 00:58:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440009#M109843</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-02-26T00:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440012#M109845</link>
      <description>&lt;P&gt;Hello Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I am new to SAS, I would request you to help me know how to change the date time stamp seen at the output window&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example in the below date time stamp,I need to alter the day shown(Thursday) as it is incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;12:33 Thursday, February 25, 2018 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 09:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440012#M109845</guid>
      <dc:creator>ShrutiD</dc:creator>
      <dc:date>2018-02-25T09:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440014#M109846</link>
      <description>This is the time you started the sas session. &lt;BR /&gt;</description>
      <pubDate>Sun, 25 Feb 2018 09:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440014#M109846</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-02-25T09:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440042#M109860</link>
      <description>&lt;P&gt;If you're referring to the date time that is printed by default at the bottom of a report, then the default system date is the date the SAS session was started. If you want the date/time you can use the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(date(), worddate.);

%put %sysfunc(datetime(), datetime.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This means turning off the SAS default and adding your own date time to the report or ensuring that you use a clean session when submitting a report - i.e. if you run a report via batch process or stored process I would expect it to have the latest date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;footnote1 "This report was run on: %sysfunc(date(), worddate.)";

proc print data=sashelp.class (obs=5) noobs label;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note this doesn't seem to work on SAS UE for some reason, or at least mine is still reporting the session&amp;nbsp;date:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-02-25 at 10.31.26 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18802iA33BD543A7A448E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-02-25 at 10.31.26 AM.png" alt="Screen Shot 2018-02-25 at 10.31.26 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 17:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440042#M109860</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-25T17:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440091#M109878</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/166951"&gt;@ShrutiD&lt;/a&gt;&amp;nbsp; Your question has motivated me to see if there is an option to control the date/time info on listings and logs.&amp;nbsp; And I've learned that there is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OPTIONS NODTRESET;&lt;/P&gt;
&lt;P&gt;means that the session start date and time are used in your procedure printout.&amp;nbsp; This is the sas default on all the systems I have used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OPTIONS DTRESET;&lt;/P&gt;
&lt;P&gt;means that the time of procedure execution is used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The options statement is global.&amp;nbsp; I.e. it doesn't belong to a proc step or data step.&amp;nbsp; When you issue it, all subsequent steps honor it.&lt;/P&gt;
&lt;P&gt;So put OPTIIONS DTREST prior to your proc's of interest.&amp;nbsp; And, if you want, it turns out you can go back to the sas default by issuing OPTIONS NODTRESET after those proc's.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 23:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440091#M109878</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-02-25T23:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440092#M109879</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt;&amp;nbsp;that's awesome!&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 23:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440092#M109879</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-25T23:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440111#M109890</link>
      <description>&lt;P&gt;Thank you all for the solution!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 04:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-time-stamp/m-p/440111#M109890</guid>
      <dc:creator>ShrutiD</dc:creator>
      <dc:date>2018-02-26T04:35:02Z</dc:date>
    </item>
  </channel>
</rss>

