<?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: Error with SASEOECD engine in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813641#M321147</link>
    <description>&lt;P&gt;The ETSMACRO appears to be a macro in the SAS/ETS autocall library which is being called by Proc SASEOECD. It has a few %index statements. I can't work out which one is not working. Looks like a call to support is needed.&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 00:08:58 GMT</pubDate>
    <dc:creator>BruceBrad</dc:creator>
    <dc:date>2022-05-17T00:08:58Z</dc:date>
    <item>
      <title>Error with SASEOECD engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813446#M321053</link>
      <description>&lt;P&gt;I'm trying to run the following code (from the SAS system documentation). But I'm getting the error below. The only change I've made from the documentation is to put in the reference to "c:\temp" (which is a valid folder on my system).&lt;/P&gt;
&lt;P&gt;ERROR: Macro function %INDEX has too many arguments.&lt;BR /&gt;ERROR: The macro ETSMACRO will stop executing.&lt;/P&gt;
&lt;PRE&gt;options validvarname=any;

data keylist0;
   length key0 $8;
   key0='EA17'; output; /* country is euro area; 17 countries */
run;

data keylist1;
   length key1 $8;
   key1='B1_GA'; output; /* transaction is GDP; output approach */
run;

data keylist2;
   length key2 $2;
   key2='C'; output;     /* measure is current prices */
run;

title 'Request GDP for EA_17 in Current Prices';
LIBNAME myLib saseoecd "c:\temp"
   setid=SNA_TABLE1_SNA93
   inset0=keylist0
   inset1=keylist1
   inset2=keylist2
   out=gstart
   ;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 12:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813446#M321053</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2022-05-16T12:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error with SASEOECD engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813483#M321070</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your program comes from here :&lt;/P&gt;
&lt;P&gt;SAS/ETS® 15.2 User's Guide&lt;BR /&gt;The SASEOECD Interface Engine&lt;BR /&gt;Example 52.1 Retrieving OECD Gross Domestic Product Data for One Region&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/etsug/15.2/etsug_saseoecd_examples01.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/etsug/15.2/etsug_saseoecd_examples01.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That page nor the program you published contains an ETSMACRO with %INDEX, so I have the impression the problem lies elsewhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 15:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813483#M321070</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-05-16T15:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error with SASEOECD engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813641#M321147</link>
      <description>&lt;P&gt;The ETSMACRO appears to be a macro in the SAS/ETS autocall library which is being called by Proc SASEOECD. It has a few %index statements. I can't work out which one is not working. Looks like a call to support is needed.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 00:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813641#M321147</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2022-05-17T00:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error with SASEOECD engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813721#M321177</link>
      <description>&lt;P&gt;From the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_015/etsug/etsug_saseoecd_syntax01.htm" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; of the SASEOECD LIBNAME statement:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The required &lt;/SPAN&gt;&lt;SPAN class=" aa-argument"&gt;physical-name&lt;/SPAN&gt;&lt;SPAN&gt; argument specifies the location of the folder where your OECD JSON data reside. It should end with a &lt;STRONG&gt;backslash if you are in a Windows environment&lt;/STRONG&gt; or a forward slash if you are in a UNIX environment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your path does not contain the trailing backslash:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME myLib saseoecd "c:\temp"
   setid=SNA_TABLE1_SNA93
   inset0=keylist0
   inset1=keylist1
   inset2=keylist2
   out=gstart
   ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 May 2022 08:57:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813721#M321177</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-17T08:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error with SASEOECD engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813723#M321178</link>
      <description>&lt;P&gt;And if you run this code in a client/server environment either through SAS Studio or Enterprise Guide, the path must be on the server, to which you must first upload the files.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 08:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813723#M321178</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-17T08:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error with SASEOECD engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813784#M321209</link>
      <description>&lt;P&gt;Thanks for the suggestions. I did miss the trailing slash requirement. However, I've fixed that and still have the same error. As I read the documentation, the libname statement does the downloading, I don't need to do it first. But it is a bit confusing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when I run the program with macro debugging I see that it is calling the autocall library search path just before the error. If I run the program without my autoexec.sas which sets up my autocall library, it runs without error. (Haven't checked for sensible output yet). So I think there is something wrong with either my autoexec.sas, or there is a bug in the code where it doesn't handle an autocall library properly (not handling the comma in the augmented search path properly). The relevant code in my autoexec.sas is similar to that below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options sasautos=("%sysget(userprofile)\Data\SASMACRO",sasautos);
&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 May 2022 12:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813784#M321209</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2022-05-17T12:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error with SASEOECD engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813976#M321279</link>
      <description>&lt;P&gt;I've confirmed with SAS support that there is a problem with the treatment of autocall libraries. The workaround is to remove the library reference before running the SASEOECD libname statement with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sasautos=sasautos;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 May 2022 02:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-with-SASEOECD-engine/m-p/813976#M321279</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2022-05-18T02:24:02Z</dc:date>
    </item>
  </channel>
</rss>

