<?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 to record the number of SAS startups? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-record-the-number-of-SAS-startups/m-p/550985#M16085</link>
    <description>&lt;P&gt;I am designing an auto SAS program. I want it execute at the very first time I start SAS everyday and it should be executed only once. That is to say, I may start SAS several times this day, but the auto program will be executed only the first time I start SAS.&lt;/P&gt;&lt;P&gt;There are also some restricts:&lt;BR /&gt;1. It won't be executed if I have not use my SAS one day;&lt;BR /&gt;2. It won't be executed if I happen to working on SAS at daybreak;&lt;/P&gt;&lt;P&gt;Thanks for any hints.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2019 10:04:10 GMT</pubDate>
    <dc:creator>whymath</dc:creator>
    <dc:date>2019-04-15T10:04:10Z</dc:date>
    <item>
      <title>How to record the number of SAS startups?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-record-the-number-of-SAS-startups/m-p/550985#M16085</link>
      <description>&lt;P&gt;I am designing an auto SAS program. I want it execute at the very first time I start SAS everyday and it should be executed only once. That is to say, I may start SAS several times this day, but the auto program will be executed only the first time I start SAS.&lt;/P&gt;&lt;P&gt;There are also some restricts:&lt;BR /&gt;1. It won't be executed if I have not use my SAS one day;&lt;BR /&gt;2. It won't be executed if I happen to working on SAS at daybreak;&lt;/P&gt;&lt;P&gt;Thanks for any hints.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 10:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-record-the-number-of-SAS-startups/m-p/550985#M16085</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2019-04-15T10:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to record the number of SAS startups?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-record-the-number-of-SAS-startups/m-p/551146#M16086</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270406"&gt;@whymath&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would say that scripting is your answer. You can script with SAS, bash, perl, python, powershell, anything that is of your preference and you feel more confident.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having a file that record the times you started SAS together with the date will help with control.&lt;/P&gt;
&lt;P&gt;That control will need to pass your validations, with some rules (something like IF clauses).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If needed, you can add some additional scripting to current script that start SAS, to write on that control file, so you know when it has been started.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you cannot script, you can consider asking your colleagues with more expertise on that area, to support you with this task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should not be very complicated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 17:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-record-the-number-of-SAS-startups/m-p/551146#M16086</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2019-04-15T17:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to record the number of SAS startups?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-record-the-number-of-SAS-startups/m-p/551310#M16089</link>
      <description>This has some subtle sharp edges you might hit in cases where the SAS system is very very busy. A script could be quite prone to race conditions on busy servers. If you have lots of sessions spawning you might miscount if two sessions spawn at almost identical times. &lt;BR /&gt;&lt;BR /&gt;If this is just your workstation you are unlikely to miscount because of races with many SAS sessions starting in the same microsecond.</description>
      <pubDate>Tue, 16 Apr 2019 06:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-record-the-number-of-SAS-startups/m-p/551310#M16089</guid>
      <dc:creator>SimonDawson</dc:creator>
      <dc:date>2019-04-16T06:40:56Z</dc:date>
    </item>
  </channel>
</rss>

