<?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: PROC DATASETS weird log behavior in EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-DATASETS-weird-log-behavior-in-EG/m-p/487050#M31526</link>
    <description>&lt;P&gt;See Maxim 1.&lt;/P&gt;
&lt;P&gt;proc datasets supports run blocks (a run does not terminate it), and stays active until a new procedure or data step starts, or a quit statement is issued.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2018 15:50:55 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-08-15T15:50:55Z</dc:date>
    <item>
      <title>PROC DATASETS weird log behavior in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-DATASETS-weird-log-behavior-in-EG/m-p/487044#M31523</link>
      <description>&lt;P&gt;I'm working on a log analysis program (based on the LOGPARSE macro) for my team.&amp;nbsp; We use EG, which helpfully inserts some macro code at the beginning and end of tasks which can be used to identify process flow and task labels.&amp;nbsp; However, I'm running into a weird problem, specifically when PROC DATASETS is used as the last code submitted in a program node.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If PROC DATASETS is the last code submitted, the timing results come back&amp;nbsp;&lt;EM&gt;after&lt;/EM&gt; the macro code injected at the end of the program.&amp;nbsp; This does not happen if, say, a data step or a proc sort is the last code submitted. This is tripping me up when parsing the log as the i'm using the&amp;nbsp;%LET _CLIENTTASKLABEL part of the log to determine the associated task node, but it's being reset to blank before I can get the timing info.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached sample code and log files so you can see what I'm talking about.&amp;nbsp; The ones labeled Program_1 work as expected (with a data step as the last submitted code), and the ones labeled Program_2 do not work as expected (with a PROC DATASETS as the last submitted code).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd greatly appreciate if anyone has any insight as to why the log behaves in this way, or suggestions for how to get the timing info to show up before the macro variables get reset.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 15:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-DATASETS-weird-log-behavior-in-EG/m-p/487044#M31523</guid>
      <dc:creator>sdennett</dc:creator>
      <dc:date>2018-08-15T15:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS weird log behavior in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-DATASETS-weird-log-behavior-in-EG/m-p/487048#M31525</link>
      <description>&lt;P&gt;Here are the log files, which did get uploaded for some reason.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 15:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-DATASETS-weird-log-behavior-in-EG/m-p/487048#M31525</guid>
      <dc:creator>sdennett</dc:creator>
      <dc:date>2018-08-15T15:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS weird log behavior in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-DATASETS-weird-log-behavior-in-EG/m-p/487050#M31526</link>
      <description>&lt;P&gt;See Maxim 1.&lt;/P&gt;
&lt;P&gt;proc datasets supports run blocks (a run does not terminate it), and stays active until a new procedure or data step starts, or a quit statement is issued.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 15:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-DATASETS-weird-log-behavior-in-EG/m-p/487050#M31526</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-15T15:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DATASETS weird log behavior in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-DATASETS-weird-log-behavior-in-EG/m-p/487068#M31529</link>
      <description>&lt;P&gt;Aha!&amp;nbsp; Thank you, using a quit statement instead of run solved it!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 16:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-DATASETS-weird-log-behavior-in-EG/m-p/487068#M31529</guid>
      <dc:creator>sdennett</dc:creator>
      <dc:date>2018-08-15T16:55:08Z</dc:date>
    </item>
  </channel>
</rss>

