<?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 make my projects update automatically? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-my-projects-update-automatically/m-p/773323#M39715</link>
    <description>&lt;P&gt;So you have a library where all those datasets reside. Let's call this library IN for the example.&lt;/P&gt;
&lt;P&gt;Within that library you have several datasets starting with CARS_, thankfully sorted by date because you use (commendable!) a YMD order.&lt;/P&gt;
&lt;P&gt;Basically, you can retrieve the name of the most recent dataset like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select max(name) into :dsname
from dictionary.tables
where libname = "IN" and memname like 'CARS_%';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After that use &amp;amp;dsname. wherever you need the source dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that libname and memname in the dictionary tables are always uppercase for SAS datasets/views.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Oct 2021 07:55:40 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-10-11T07:55:40Z</dc:date>
    <item>
      <title>How to make my projects update automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-my-projects-update-automatically/m-p/773273#M39708</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I very recently started using SAS and one of the daily tasks I have is basically go through every single project and update the primary tables and run the project.&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to automatically run the project with the most recent table available, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have table Cars_2021_09_01 where the project is collecting data. So since the month changed a new table was created name Cars_2021_10_01. Currently I have to open the project and manually change the previous table with the new table. Is there a way to do that automatically?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 16:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-my-projects-update-automatically/m-p/773273#M39708</guid>
      <dc:creator>IplaywithSAS</dc:creator>
      <dc:date>2021-10-10T16:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to make my projects update automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-my-projects-update-automatically/m-p/773289#M39710</link>
      <description>&lt;P&gt;Is the date you want to process related to the date you run the project? For example if you run your project during September you want to read&amp;nbsp;Cars_2021_09_01 and if you run during October you want Cars_2021_10_01? If so you can make use of the SAS TODAY function to read today's date and then automatically read the table you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  Table_Name = 'Cars_' !! translate(put(intnx('MONTH',today(), 0, 'BEGIN'), yymmddd10.), '_', '-');
  put _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 22:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-my-projects-update-automatically/m-p/773289#M39710</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-10-10T22:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make my projects update automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-my-projects-update-automatically/m-p/773323#M39715</link>
      <description>&lt;P&gt;So you have a library where all those datasets reside. Let's call this library IN for the example.&lt;/P&gt;
&lt;P&gt;Within that library you have several datasets starting with CARS_, thankfully sorted by date because you use (commendable!) a YMD order.&lt;/P&gt;
&lt;P&gt;Basically, you can retrieve the name of the most recent dataset like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select max(name) into :dsname
from dictionary.tables
where libname = "IN" and memname like 'CARS_%';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After that use &amp;amp;dsname. wherever you need the source dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that libname and memname in the dictionary tables are always uppercase for SAS datasets/views.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 07:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-my-projects-update-automatically/m-p/773323#M39715</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-11T07:55:40Z</dc:date>
    </item>
  </channel>
</rss>

