<?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: Resolving &amp;quot;apparent symbolic reference not resolved&amp;quot; error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Resolving-quot-apparent-symbolic-reference-not-resolved-quot/m-p/650916#M195225</link>
    <description>That was it - thank you very much!</description>
    <pubDate>Tue, 26 May 2020 20:35:00 GMT</pubDate>
    <dc:creator>eb175</dc:creator>
    <dc:date>2020-05-26T20:35:00Z</dc:date>
    <item>
      <title>Resolving "apparent symbolic reference not resolved" error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Resolving-quot-apparent-symbolic-reference-not-resolved-quot/m-p/650913#M195222</link>
      <description>&lt;P&gt;I found a sample program on the SAS website to import all .csv files from a directory here: &lt;A href="https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n0ctmldxf23ixtn1kqsoh5bsgmg8.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n0ctmldxf23ixtn1kqsoh5bsgmg8.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import several csv files using this macro. The only thing I've changed is the filepath reference when the macro is invoked at the end of the code and I get an error message saying "WARNING: Apparent symbolic reference CSV not resolved." I thought that inputting csv just told the macro what file extension is used for all the files in the folder. I know this warning message is usually the result of trying to use a global variable that has never been defined. I didn't think I was referencing a variable named "CSV." Does anyone know why I might be getting this error? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%macro drive(dir,ext); 
   %local cnt filrf rc did memcnt name; 
   %let cnt=0;          

   %let filrf=mydir;    
   %let rc=%sysfunc(filename(filrf,&amp;amp;dir)); 
   %let did=%sysfunc(dopen(&amp;amp;filrf));
    %if &amp;amp;did ne 0 %then %do;   
   %let memcnt=%sysfunc(dnum(&amp;amp;did));    

    %do i=1 %to &amp;amp;memcnt;              
                       
      %let name=%qscan(%qsysfunc(dread(&amp;amp;did,&amp;amp;i)),-1,.);                    
                    
      %if %qupcase(%qsysfunc(dread(&amp;amp;did,&amp;amp;i))) ne %qupcase(&amp;amp;name) %then %do;
       %if %superq(ext) = %superq(&amp;amp;name) %then %do;                         
          %let cnt=%eval(&amp;amp;cnt+1);       
          %put %qsysfunc(dread(&amp;amp;did,&amp;amp;i));  
          proc import datafile="&amp;amp;dir\%qsysfunc(dread(&amp;amp;did,&amp;amp;i))" out=dsn&amp;amp;cnt 
           dbms=csv replace;            
          run;          
       %end; 
      %end;  

    %end;
      %end;
  %else %put &amp;amp;dir cannot be open.;
  %let rc=%sysfunc(dclose(&amp;amp;did));      
             
 %mend drive;
 
%drive(c:\temp,csv)&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 May 2020 20:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Resolving-quot-apparent-symbolic-reference-not-resolved-quot/m-p/650913#M195222</guid>
      <dc:creator>eb175</dc:creator>
      <dc:date>2020-05-26T20:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving "apparent symbolic reference not resolved" error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Resolving-quot-apparent-symbolic-reference-not-resolved-quot/m-p/650914#M195223</link>
      <description>&lt;P&gt;Please show your log, including the error. You may want to add the macro debugging options as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint symbolgen;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 May 2020 20:28:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Resolving-quot-apparent-symbolic-reference-not-resolved-quot/m-p/650914#M195223</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-26T20:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving "apparent symbolic reference not resolved" error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Resolving-quot-apparent-symbolic-reference-not-resolved-quot/m-p/650915#M195224</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/330861"&gt;@eb175&lt;/a&gt;&amp;nbsp; A quick look makes me spot&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%if %superq(ext) = &lt;FONT color="#FF0000"&gt;%superq(&amp;amp;name)&lt;/FONT&gt; %then %do;&amp;nbsp; /*is this error as the syntax should be &lt;FONT color="#339966"&gt;%superq(name)&lt;/FONT&gt; without the the ampersand &amp;amp;*/&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 20:29:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Resolving-quot-apparent-symbolic-reference-not-resolved-quot/m-p/650915#M195224</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-05-26T20:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving "apparent symbolic reference not resolved" error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Resolving-quot-apparent-symbolic-reference-not-resolved-quot/m-p/650916#M195225</link>
      <description>That was it - thank you very much!</description>
      <pubDate>Tue, 26 May 2020 20:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Resolving-quot-apparent-symbolic-reference-not-resolved-quot/m-p/650916#M195225</guid>
      <dc:creator>eb175</dc:creator>
      <dc:date>2020-05-26T20:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving "apparent symbolic reference not resolved" error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Resolving-quot-apparent-symbolic-reference-not-resolved-quot/m-p/650958#M195237</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93217"&gt;@SAS_CommAdmin&lt;/a&gt;&amp;nbsp;Can you please get this changed in the documentation?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 02:08:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Resolving-quot-apparent-symbolic-reference-not-resolved-quot/m-p/650958#M195237</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-27T02:08:02Z</dc:date>
    </item>
  </channel>
</rss>

