<?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: Dynamic SAS EG Project Log save location in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-SAS-EG-Project-Log-save-location/m-p/834640#M41454</link>
    <description>&lt;P&gt;This is helpful as the first step, but I still can't figure out how to programmatically access the project log. Right now I right click on the last program in the process flow, choose "Share" . . . "Export as&amp;nbsp; a step in the project", choose the "Project Log", and then manually point and click to the desired save location. I would like to just have a program I could place at the end of a process flow to save off the log.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 11:22:33 GMT</pubDate>
    <dc:creator>bbieber</dc:creator>
    <dc:date>2022-09-22T11:22:33Z</dc:date>
    <item>
      <title>Dynamic SAS EG Project Log save location</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-SAS-EG-Project-Log-save-location/m-p/834389#M41445</link>
      <description>&lt;P&gt;I would like to automatically save the overall project log for a SAS EG project to the folder in which the project is saved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can obviously point and click my way to the folder when exporting the log, but I would like to avoid these steps. I also have parallel execution of several programs so I cannot simply output the log for each program to the same file (i.e.&amp;nbsp;proc printto log = "&amp;amp;path.\projectLog.log"; run;)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 21:39:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-SAS-EG-Project-Log-save-location/m-p/834389#M41445</guid>
      <dc:creator>bbieber</dc:creator>
      <dc:date>2022-09-20T21:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic SAS EG Project Log save location</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-SAS-EG-Project-Log-save-location/m-p/834390#M41446</link>
      <description>&lt;P&gt;If you want one log for program. you could do something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log = "&amp;amp;path.\&amp;amp;program..log";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think EG might create an automatic macro variable similar to &amp;amp;program with the name of the current program.&amp;nbsp; If not, there are ways find out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 21:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-SAS-EG-Project-Log-save-location/m-p/834390#M41446</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-09-20T21:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic SAS EG Project Log save location</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-SAS-EG-Project-Log-save-location/m-p/834423#M41449</link>
      <description>&lt;P&gt;The variable &amp;amp;_ClientProjectPath has the name of the egp including full path, enclosed in single quotes. To get the path only, you can use something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   path = substr(&amp;amp;_ClientProjectPath, 1, findc(&amp;amp;_ClientProjectPath, '/\', 1, 'b') -1);
   call symputx('cpp', path);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Sep 2022 05:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-SAS-EG-Project-Log-save-location/m-p/834423#M41449</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-09-21T05:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic SAS EG Project Log save location</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-SAS-EG-Project-Log-save-location/m-p/834637#M41453</link>
      <description>&lt;P&gt;This solution does not solve my problem - i.e. there are multiple programs running in parallel so printing to the same log file within each proc printto fails.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 11:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-SAS-EG-Project-Log-save-location/m-p/834637#M41453</guid>
      <dc:creator>bbieber</dc:creator>
      <dc:date>2022-09-22T11:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic SAS EG Project Log save location</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-SAS-EG-Project-Log-save-location/m-p/834640#M41454</link>
      <description>&lt;P&gt;This is helpful as the first step, but I still can't figure out how to programmatically access the project log. Right now I right click on the last program in the process flow, choose "Share" . . . "Export as&amp;nbsp; a step in the project", choose the "Project Log", and then manually point and click to the desired save location. I would like to just have a program I could place at the end of a process flow to save off the log.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 11:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-SAS-EG-Project-Log-save-location/m-p/834640#M41454</guid>
      <dc:creator>bbieber</dc:creator>
      <dc:date>2022-09-22T11:22:33Z</dc:date>
    </item>
  </channel>
</rss>

