<?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 How do I record  in the SASLOG the date and time of each program run in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-record-in-the-SASLOG-the-date-and-time-of-each-program/m-p/408361#M99654</link>
    <description>&lt;P&gt;I'd like to record in SASLOG the date and time of running programs. I have a manual solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%put START TIME: %sysfunc(datetime(),datetime14.);&lt;BR /&gt;data temp;&lt;BR /&gt;x=1;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=temp ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with the&amp;nbsp;saslog:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;81 %put START TIME: %sysfunc(datetime(),datetime14.);&lt;BR /&gt;START TIME: 29OCT17:13:14&lt;BR /&gt;82 data temp;&lt;BR /&gt;83 x=1;&lt;BR /&gt;84 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I don't want to manually add %PUT every time I run a code. Instead, I would like to make a change in SASLOG configuration to get datetime stamp automatically with&amp;nbsp;each run of&amp;nbsp;any code opened in the SAS session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked up&amp;nbsp;OPTIONS DATE&amp;nbsp;(attached) does not produce the date in the output nor saslog.&lt;/P&gt;&lt;P&gt;Many thanks for any hints!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Krzysztof&lt;/P&gt;</description>
    <pubDate>Sun, 29 Oct 2017 17:26:32 GMT</pubDate>
    <dc:creator>kdzieciolowski</dc:creator>
    <dc:date>2017-10-29T17:26:32Z</dc:date>
    <item>
      <title>How do I record  in the SASLOG the date and time of each program run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-record-in-the-SASLOG-the-date-and-time-of-each-program/m-p/408361#M99654</link>
      <description>&lt;P&gt;I'd like to record in SASLOG the date and time of running programs. I have a manual solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%put START TIME: %sysfunc(datetime(),datetime14.);&lt;BR /&gt;data temp;&lt;BR /&gt;x=1;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=temp ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with the&amp;nbsp;saslog:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;81 %put START TIME: %sysfunc(datetime(),datetime14.);&lt;BR /&gt;START TIME: 29OCT17:13:14&lt;BR /&gt;82 data temp;&lt;BR /&gt;83 x=1;&lt;BR /&gt;84 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I don't want to manually add %PUT every time I run a code. Instead, I would like to make a change in SASLOG configuration to get datetime stamp automatically with&amp;nbsp;each run of&amp;nbsp;any code opened in the SAS session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked up&amp;nbsp;OPTIONS DATE&amp;nbsp;(attached) does not produce the date in the output nor saslog.&lt;/P&gt;&lt;P&gt;Many thanks for any hints!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Krzysztof&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 17:26:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-record-in-the-SASLOG-the-date-and-time-of-each-program/m-p/408361#M99654</guid>
      <dc:creator>kdzieciolowski</dc:creator>
      <dc:date>2017-10-29T17:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I record  in the SASLOG the date and time of each program run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-record-in-the-SASLOG-the-date-and-time-of-each-program/m-p/408378#M99668</link>
      <description>&lt;P&gt;SAS already writes the starting time at the top of the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could just add up the times for the previous steps if you really needed to figure out when a particular one started.&lt;/P&gt;
&lt;P&gt;Otherwise use your method to add you own notes to the log.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 18:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-record-in-the-SASLOG-the-date-and-time-of-each-program/m-p/408378#M99668</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-10-29T18:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I record  in the SASLOG the date and time of each program run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-record-in-the-SASLOG-the-date-and-time-of-each-program/m-p/408404#M99694</link>
      <description>?Thanks Tom. However, my SASLOG does not show date nor time anywhere despite the OPTIONS DATE being checked in the SAS System Options. No date when starting a new SAS session nor when running the code.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 29 Oct 2017 19:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-record-in-the-SASLOG-the-date-and-time-of-each-program/m-p/408404#M99694</guid>
      <dc:creator>kdzieciolowski</dc:creator>
      <dc:date>2017-10-29T19:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I record  in the SASLOG the date and time of each program run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-record-in-the-SASLOG-the-date-and-time-of-each-program/m-p/408408#M99695</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/57739"&gt;@kdzieciolowski&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Line 1 in the SAS log should show the start time BUT it's always the time when SAS got invoked. So that works nicely for batch jobs but doesn't give you a lot of useful information for other modes of running SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You method looks good to me.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 20:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-record-in-the-SASLOG-the-date-and-time-of-each-program/m-p/408408#M99695</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-10-29T20:48:40Z</dc:date>
    </item>
  </channel>
</rss>

