<?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: Macro Variable for SAS/STAT version? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694388#M211765</link>
    <description>&lt;P&gt;Back a few years ago, some coauthors and myself composed the book on the data sets. FWIW, I do not remember that being available there.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2020 22:56:40 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2020-10-26T22:56:40Z</dc:date>
    <item>
      <title>Macro Variable for SAS/STAT version?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694367#M211756</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; I'm looking to update my NEWSURV macro with the ability to grab RMST values from proc LIFETEST, and I was curious if there is a system macro variable to grab the session's SAS/STAT version like there is for the actual SAS version.&amp;nbsp; I'm not sure if SAS/STAT is automatically updated for SAS 9.4M5 or if they are updated separately on user's systems.&amp;nbsp; I believe the RMST options were added in SAS/STAT 15.1 so I'm looking for a macro variable to tell me which version number the user was on.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 21:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694367#M211756</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2020-10-26T21:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable for SAS/STAT version?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694379#M211759</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2153"&gt;@JeffMeyers&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if there's an easier way, but in any case you could read that version number from &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=p167ky4zsoxrn2n1myz6iisao1wc.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;PROC PRODUCT_STATUS&lt;/A&gt; output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log=work._tmpcat._tmp.log;
proc product_status;
proc printto;
run;

filename tmplog catalog 'work._tmpcat._tmp.log';

data _null_;
infile tmplog;
do until(_infile_=:'For SAS/STAT');
  input;
end;
input @'Custom version information:' statver;
call symputx('statver',statver);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 22:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694379#M211759</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-10-26T22:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable for SAS/STAT version?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694384#M211762</link>
      <description>I feel like it would also be buried in one of the SASHELP libraries but I couldn't find it, albeit it wasn't a thorough search &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Mon, 26 Oct 2020 22:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694384#M211762</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-26T22:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable for SAS/STAT version?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694388#M211765</link>
      <description>&lt;P&gt;Back a few years ago, some coauthors and myself composed the book on the data sets. FWIW, I do not remember that being available there.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 22:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694388#M211765</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2020-10-26T22:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable for SAS/STAT version?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694393#M211767</link>
      <description>&lt;P&gt;Just thought it would be worthwhile advising that PROC PRODUCT_STATUS is now deprecated in SAS Viya and will be removed from future versions according to the documentation. Not sure if there is an alternative way to get the product version if you are running SAS/STAT on Viya.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 23:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694393#M211767</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-26T23:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable for SAS/STAT version?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694426#M211772</link>
      <description>This seems like a really cool solution and it looks like it works when I test it out.  Thank you for writing this!  I also like that this doesn't seem to create a physical file or write anything to the log as it would help keep my macro output clean.</description>
      <pubDate>Tue, 27 Oct 2020 02:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694426#M211772</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2020-10-27T02:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable for SAS/STAT version?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694428#M211773</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2153"&gt;@JeffMeyers&lt;/a&gt;&amp;nbsp;- Yes that solution is really cool. It is writing to a SAS catalog stored in the SAS WORK library. That means when your SAS session ends it will be automatically deleted.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 03:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-for-SAS-STAT-version/m-p/694428#M211773</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-27T03:14:00Z</dc:date>
    </item>
  </channel>
</rss>

