<?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: how to programmatically retrieve the maintenance version (e.g. TS1M8) used to run my SAS code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-programmatically-retrieve-the-maintenance-version-e-g/m-p/920078#M362390</link>
    <description>&lt;P&gt;Retrieve it from SYSVLONG, SCAN after the second dot and before the first "P":&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;want = scan(scan("&amp;amp;sysvlong.",2,"."),1,"P");&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Mar 2024 09:02:04 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2024-03-13T09:02:04Z</dc:date>
    <item>
      <title>how to programmatically retrieve the maintenance version (e.g. TS1M8) used to run my SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-programmatically-retrieve-the-maintenance-version-e-g/m-p/920073#M362388</link>
      <description>&lt;P&gt;Automatic macro-variables seem to provide either a too simple or a too complex version number:&lt;/P&gt;
&lt;P&gt;AUTOMATIC SYSVER 9.4&lt;BR /&gt;AUTOMATIC SYSVLONG 9.04.01M8P011823&lt;BR /&gt;AUTOMATIC SYSVLONG4 9.04.01M8P01182023&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Can we assume that the maintenance version (such as TS1M8) can always be derived from &amp;amp;sysvlong, and if yes what would be a reliable way of doing it ?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 08:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-programmatically-retrieve-the-maintenance-version-e-g/m-p/920073#M362388</guid>
      <dc:creator>jbodart</dc:creator>
      <dc:date>2024-03-13T08:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically retrieve the maintenance version (e.g. TS1M8) used to run my SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-programmatically-retrieve-the-maintenance-version-e-g/m-p/920078#M362390</link>
      <description>&lt;P&gt;Retrieve it from SYSVLONG, SCAN after the second dot and before the first "P":&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;want = scan(scan("&amp;amp;sysvlong.",2,"."),1,"P");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Mar 2024 09:02:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-programmatically-retrieve-the-maintenance-version-e-g/m-p/920078#M362390</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-03-13T09:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically retrieve the maintenance version (e.g. TS1M8) used to run my SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-programmatically-retrieve-the-maintenance-version-e-g/m-p/920087#M362391</link>
      <description>yes that works with the current version but is that guaranteed to work with any version ?</description>
      <pubDate>Wed, 13 Mar 2024 10:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-programmatically-retrieve-the-maintenance-version-e-g/m-p/920087#M362391</guid>
      <dc:creator>jbodart</dc:creator>
      <dc:date>2024-03-13T10:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically retrieve the maintenance version (e.g. TS1M8) used to run my SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-programmatically-retrieve-the-maintenance-version-e-g/m-p/920106#M362395</link>
      <description>&lt;P&gt;For any 9.4 version, yes.&lt;/P&gt;
&lt;P&gt;And if you migrate to Viya 4, this wil be the format:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;V.04.00M0P083123&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Mar 2024 12:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-programmatically-retrieve-the-maintenance-version-e-g/m-p/920106#M362395</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2024-03-13T12:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to programmatically retrieve the maintenance version (e.g. TS1M8) used to run my SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-programmatically-retrieve-the-maintenance-version-e-g/m-p/920107#M362396</link>
      <description>&lt;P&gt;I ended up with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%if &amp;amp;sysver=9.4 %then %do;
&amp;nbsp; &amp;nbsp;%let software_version = SAS &amp;amp;sysver (TS%sysfunc(prxchange(s/^0*//, 1, %qscan(%qscan(&amp;amp;sysvlong,3,.),1,P))));
%end; %else %do;
&amp;nbsp; &amp;nbsp;%let software_version = SAS &amp;amp;sysvlong;
%end;
%put &amp;amp;=software_version;&lt;/PRE&gt;
&lt;P&gt;which results in:&lt;BR /&gt;SOFTWARE_VERSION=SAS 9.4 (TS1M8)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 12:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-programmatically-retrieve-the-maintenance-version-e-g/m-p/920107#M362396</guid>
      <dc:creator>jbodart</dc:creator>
      <dc:date>2024-03-13T12:24:52Z</dc:date>
    </item>
  </channel>
</rss>

