<?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: %logParse usage in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/logParse-usage/m-p/323694#M21624</link>
    <description>&lt;P&gt;Hi Damian (great name &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess is that the input parameter LOGFILE (from %logparse(logfile , myperfdata);) is not recognized as the filename you defined earlier.&lt;/P&gt;
&lt;P&gt;As such, it's trying to find a file name LOGFILE from the default folder use by the Workspace Server (you're using EG?) which is C:\SAS\Config\Lev1\SASApp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i'm thinking of 2 options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - use the full path&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%logparse("\\serverxx\esa.log", myperfdata);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - use a macro-variable&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%let logfile='\\serverxx\esa.log';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%logparse(&amp;amp;logfile., myperfdata);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Damo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 16:16:41 GMT</pubDate>
    <dc:creator>Damo</dc:creator>
    <dc:date>2017-01-10T16:16:41Z</dc:date>
    <item>
      <title>%logParse usage</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/logParse-usage/m-p/323570#M21618</link>
      <description>&lt;P&gt;I am trying to use the logParse Macro, but having some issues being able to reference the logfile which i am redirecting to the server &amp;nbsp;- I have searched the community responses to this, but i cant find anything that solves my issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code I am submitting :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
options fullstimer;

%let files \\serverxx ;
%let logParse = \logparse.sas;
%let passInfo = \passinfo.sas;

%include "&amp;amp;files.&amp;amp;passInfo";
%passInfo;
 

filename  logfile "\\serverxx\esa.log" ;

proc printto log= logfile  ; 
run; 

 
data esa;
	set benefit.esa_history (where=(date_data_Extract &amp;gt; "01dec2016"d));
run;

%include "&amp;amp;files.&amp;amp;logParse";
%logparse(logfile , myperfdata);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i submit this and call the %logparse file - i dont seem to be able to be passing the correct reference to the log - i am using the filename in this instance, but have also tried the full path and other options to no avail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On submitting the code above - i recieve the following message in the log which appears to suggest SAS is looking in the default SASAPP folder?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
NOTE: Variable abovemem is uninitialized.
ERROR: Physical file does not exist, C:\SAS\Config\Lev1\SASApp\logfile.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate any thoughts / advice on how to solve this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 11:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/logParse-usage/m-p/323570#M21618</guid>
      <dc:creator>dmcloughlin</dc:creator>
      <dc:date>2017-01-10T11:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: %logParse usage</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/logParse-usage/m-p/323694#M21624</link>
      <description>&lt;P&gt;Hi Damian (great name &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess is that the input parameter LOGFILE (from %logparse(logfile , myperfdata);) is not recognized as the filename you defined earlier.&lt;/P&gt;
&lt;P&gt;As such, it's trying to find a file name LOGFILE from the default folder use by the Workspace Server (you're using EG?) which is C:\SAS\Config\Lev1\SASApp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i'm thinking of 2 options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - use the full path&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%logparse("\\serverxx\esa.log", myperfdata);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - use a macro-variable&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%let logfile='\\serverxx\esa.log';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%logparse(&amp;amp;logfile., myperfdata);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Damo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/logParse-usage/m-p/323694#M21624</guid>
      <dc:creator>Damo</dc:creator>
      <dc:date>2017-01-10T16:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: %logParse usage</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/logParse-usage/m-p/323697#M21625</link>
      <description>&lt;P&gt;Agreed on the name!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I actually managed to solve this myself earlier but hadnt got around to updating this.&amp;nbsp;I had been trying the full path approach you mentioned below, but discovered that i didnt need the quotes - when i removed these, the code worked fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - use the full path&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%logparse(\\serverxx\esa.log, myperfdata);&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/logParse-usage/m-p/323697#M21625</guid>
      <dc:creator>dmcloughlin</dc:creator>
      <dc:date>2017-01-10T16:23:29Z</dc:date>
    </item>
  </channel>
</rss>

