<?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: Record all datasets created in a session in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465264#M30109</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I'd use Proc Scaproc as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; suggests as this will already do quite a bit of log parsing for you.&lt;/P&gt;</description>
    <pubDate>Sat, 26 May 2018 11:11:47 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2018-05-26T11:11:47Z</dc:date>
    <item>
      <title>Record all datasets created in a session</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465115#M30099</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if it is possible to list all datasets/views which are created in a SAS EG session?&lt;/P&gt;&lt;P&gt;Ideally, the solution would work with notes turned off.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if I called the following macro with a %include:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro create_dsets;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; options nonotes;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; data testa.dset1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; data testb.dset2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; run;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%&lt;SPAN&gt;create_dsets;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can I then recall the datasets created in the session i.e. testa.dset1&amp;nbsp;testb.dset2?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jordan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 15:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465115#M30099</guid>
      <dc:creator>jordanw1993</dc:creator>
      <dc:date>2018-05-25T15:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Record all datasets created in a session</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465123#M30100</link>
      <description>&lt;P&gt;You can look at PROC SCAPROC to trace your programs out while you run them. The results aren't exactly what you want, but could be parsed to be what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212020"&gt;@jordanw1993&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know if it is possible to list all datasets/views which are created in a SAS EG session?&lt;/P&gt;
&lt;P&gt;Ideally, the solution would work with notes turned off.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if I called the following macro with a %include:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro create_dsets;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; options nonotes;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; data testa.dset1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a=1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; data testb.dset2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b=1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;
&lt;P&gt;%&lt;SPAN&gt;create_dsets;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can I then recall the datasets created in the session i.e. testa.dset1&amp;nbsp;testb.dset2?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Jordan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 15:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465123#M30100</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-25T15:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Record all datasets created in a session</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465135#M30101</link>
      <description>&lt;P&gt;Did you try querying the dictionary tables (SASHELP.VTABLE or Dictionary.tables), this table has create date and modified date for the tables which might help you identify the tables created in your active session. SYSDATE and SYSTIME auto macros gives you when your system started.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 16:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465135#M30101</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-05-25T16:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Record all datasets created in a session</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465245#M30107</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83078"&gt;@SuryaKiran&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I like your thinking but I believe your approach won't work anymore in cases where libraries get assigned and also de-assigned in code, where tables get created in a database, or where other people/jobs could write tables to a permanent library at the same time.&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 03:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465245#M30107</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-05-26T03:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Record all datasets created in a session</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465262#M30108</link>
      <description>&lt;P&gt;Use PROC PRINTTO; save LOG and parse it to get tables ?&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 10:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465262#M30108</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-05-26T10:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Record all datasets created in a session</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465264#M30109</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I'd use Proc Scaproc as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; suggests as this will already do quite a bit of log parsing for you.&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 11:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465264#M30109</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-05-26T11:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Record all datasets created in a session</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465711#M30161</link>
      <description>Thanks for that, it's a great starting off point!</description>
      <pubDate>Tue, 29 May 2018 13:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Record-all-datasets-created-in-a-session/m-p/465711#M30161</guid>
      <dc:creator>jordanw1993</dc:creator>
      <dc:date>2018-05-29T13:43:43Z</dc:date>
    </item>
  </channel>
</rss>

