<?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: SAS EG Prepare Error Help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845933#M334426</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-11-23_08h46_50.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77612i5E2ED7331C341046/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-11-23_08h46_50.png" alt="2022-11-23_08h46_50.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Not able to reveal whole log as it is sensitive.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 13:48:25 GMT</pubDate>
    <dc:creator>RedUser77</dc:creator>
    <dc:date>2022-11-23T13:48:25Z</dc:date>
    <item>
      <title>SAS EG Prepare Error Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845930#M334424</link>
      <description>&lt;P&gt;Hello, below is a sample query that runs in DB2. However, all of a sudden, I am now getting a prepare error and cannot figure out why. Any ideas? The pasted code can be found below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*%put &amp;amp;FAXES;*/&lt;BR /&gt;%let FAXES=&amp;amp;FAXES, 1, 2;&lt;BR /&gt;/*%put &amp;amp;FAXES;*/&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;(SELECT a.CAR_ID, c.CAR_NAME AS NAME, e.MAKE||' '||e.MODEL AS MAKE_MODEL&lt;BR /&gt;FROM OWNER.FACTORY b&lt;BR /&gt;LEFT JOIN OWNER.CARS a ON b.KEY=a.KEY&lt;BR /&gt;LEFT JOIN OWNER.STATUSES c ON b.TIME_ID =c.TIME_ID&lt;BR /&gt;LEFT JOIN OWNER.DRIVERS e ON b.NAME=e.NAME&lt;BR /&gt;INNER JOIN (SELECT ENTITY, max(TIME) AS TIMESTAMP&lt;BR /&gt;FROM OWNER.FACTORY&lt;BR /&gt;WHERE FAX_ID='Fax'&lt;BR /&gt;AND ENTITY IN(&amp;amp;FAXES)&lt;BR /&gt;AND TIMESTAMP&amp;gt;DATE-60&lt;BR /&gt;GROUP BY ENTITY) d ON b.KEY=d.ENTITY AND b.TIMESTAMP=d.TIMESTAMP&lt;/P&gt;&lt;P&gt;WHERE b.FAX_ID='Fax' AND b.KEY IN(&amp;amp;FAXES) AND b.TIMESTAMP&amp;gt;DATE-60);&lt;/P&gt;&lt;P&gt;Quit;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 13:43:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845930#M334424</guid>
      <dc:creator>RedUser77</dc:creator>
      <dc:date>2022-11-23T13:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Prepare Error Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845931#M334425</link>
      <description>&lt;P&gt;Post your log please.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 13:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845931#M334425</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-11-23T13:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Prepare Error Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845933#M334426</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-11-23_08h46_50.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77612i5E2ED7331C341046/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-11-23_08h46_50.png" alt="2022-11-23_08h46_50.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Not able to reveal whole log as it is sensitive.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 13:48:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845933#M334426</guid>
      <dc:creator>RedUser77</dc:creator>
      <dc:date>2022-11-23T13:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Prepare Error Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845935#M334427</link>
      <description>&lt;P&gt;Difficult to diagnose without a log, but if it was working and now isn't, I'd check to make sure &amp;amp;FAXES contains what you expect.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 13:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845935#M334427</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-11-23T13:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Prepare Error Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845936#M334428</link>
      <description>&lt;P&gt;What does the macro variable &amp;amp;faxes resolve to?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 13:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845936#M334428</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-11-23T13:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Prepare Error Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845938#M334429</link>
      <description>&lt;P&gt;It is supposed to&amp;nbsp;append dummy keys to the list to prevent errors on 0 or 1 car cases in the report. There is an error with this too all of a sudden where its log reads 'the text expression &amp;amp;FAXES, 1, 2 contains a recursive reference to the macro variable FAXES. The macro variable will be assigned the null value.'&lt;BR /&gt;Again, never seen this before as the program has always ran error-free until today.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 14:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845938#M334429</guid>
      <dc:creator>RedUser77</dc:creator>
      <dc:date>2022-11-23T14:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Prepare Error Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845939#M334430</link>
      <description>&lt;P&gt;Are you sure that the %let Statement has always referenced &amp;amp;FAXES? What is the point of that?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 14:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845939#M334430</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-11-23T14:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Prepare Error Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845941#M334432</link>
      <description>&lt;P&gt;Yes, very positive. Been running this since June without any changes ever being made. The point of the variable is to append dummy&amp;nbsp;keys to the list to prevent errors on 0 or 1 car cases in this recurring report.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 14:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845941#M334432</guid>
      <dc:creator>RedUser77</dc:creator>
      <dc:date>2022-11-23T14:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Prepare Error Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845942#M334433</link>
      <description>&lt;P&gt;If FAXES was supposed to have been defined in a previous step, but sometimes isn't, then you need some error checking for defensive programming.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;%if %symexist(faxes) %then %do;
  %let faxes = &amp;amp;faxes, 1, 2;
%end;
%else %do;
  %let faxes = 1, 2;
%end;

%put &amp;amp;=faxes;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might have a bigger problem going on here with previous steps failing.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 14:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EG-Prepare-Error-Help/m-p/845942#M334433</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-11-23T14:06:05Z</dc:date>
    </item>
  </channel>
</rss>

