<?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: Apparent symbolic reference not resolved in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/347966#M273364</link>
    <description>&lt;P&gt;Please try the below code, i just included an additional dot after output libname in proc export&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname OUTPUT 'P:\sample\SAS_check';&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;sql&lt;/STRONG&gt; ;&lt;/P&gt;
&lt;P&gt;select memname into :b1 -: b3 from&lt;/P&gt;
&lt;P&gt;dictionary.tables where libname = 'OUTPUT';&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;txt&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;%do i=&lt;STRONG&gt;1&lt;/STRONG&gt; %TO &lt;STRONG&gt;3&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;proc export data=OUTPUT&lt;STRONG&gt;.&lt;/STRONG&gt;.&amp;amp;&amp;amp;b&amp;amp;i&lt;/P&gt;
&lt;P&gt;outfile="P:\sourcing\SAS_check\&amp;amp;&amp;amp;b&amp;amp;i...txt" dbms=tab replace; run;&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt; txt;&lt;/P&gt;
&lt;P&gt;%&lt;STRONG&gt;&lt;EM&gt;txt&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 00:54:25 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2017-04-07T00:54:25Z</dc:date>
    <item>
      <title>Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/347963#M273363</link>
      <description>&lt;P&gt;When &amp;nbsp;I run&amp;nbsp;the below code on SAS enterprise Guide 5.2, I am able to convert all the SAS datasets&amp;nbsp;to Text files. But when I run&amp;nbsp;the same code on SAS 9.2 it throws me below error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error : "OUTPUT" is not a valid name&lt;/P&gt;&lt;P&gt;warning : " Apparent symbolic reference B not resolved"&lt;/P&gt;&lt;P&gt;ERROR : invalid data set name OUTPUT&amp;nbsp;&lt;/P&gt;&lt;P&gt;warning : " Apparent symbolic reference B not resolved"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname OUTPUT 'P:\sample\SAS_check';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;sql&lt;/STRONG&gt; ;&lt;/P&gt;&lt;P&gt;select memname into :b1 -: b3 from&lt;/P&gt;&lt;P&gt;dictionary.tables where libname = 'OUTPUT';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;txt&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;%do i=&lt;STRONG&gt;1&lt;/STRONG&gt; %TO &lt;STRONG&gt;3&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;proc export data=OUTPUT.&amp;amp;&amp;amp;b&amp;amp;i&lt;/P&gt;&lt;P&gt;outfile="P:\sourcing\SAS_check\&amp;amp;&amp;amp;b&amp;amp;i...txt" dbms=tab replace; run;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt; txt;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;EM&gt;txt&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;IF I want to implement the above code in SAS 9.2 what all changes do I need to make from the above code?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Thanks&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 00:28:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/347963#M273363</guid>
      <dc:creator>techie123</dc:creator>
      <dc:date>2017-04-07T00:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/347966#M273364</link>
      <description>&lt;P&gt;Please try the below code, i just included an additional dot after output libname in proc export&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname OUTPUT 'P:\sample\SAS_check';&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;sql&lt;/STRONG&gt; ;&lt;/P&gt;
&lt;P&gt;select memname into :b1 -: b3 from&lt;/P&gt;
&lt;P&gt;dictionary.tables where libname = 'OUTPUT';&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;txt&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;%do i=&lt;STRONG&gt;1&lt;/STRONG&gt; %TO &lt;STRONG&gt;3&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;proc export data=OUTPUT&lt;STRONG&gt;.&lt;/STRONG&gt;.&amp;amp;&amp;amp;b&amp;amp;i&lt;/P&gt;
&lt;P&gt;outfile="P:\sourcing\SAS_check\&amp;amp;&amp;amp;b&amp;amp;i...txt" dbms=tab replace; run;&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt; txt;&lt;/P&gt;
&lt;P&gt;%&lt;STRONG&gt;&lt;EM&gt;txt&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 00:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/347966#M273364</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-04-07T00:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/348174#M273365</link>
      <description>&lt;P&gt;Do you actually have 3 data sets in the OUTPUT library? If not &amp;amp;b3 does not resolve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run your code with :&lt;/P&gt;
&lt;P&gt;options mprint symbolgen;&lt;/P&gt;
&lt;P&gt;%txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And see if the log shows you an issue with one or more of your &amp;amp;b variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 15:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/348174#M273365</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-07T15:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/348415#M273366</link>
      <description>&lt;P&gt;I don't think using an old version of SAS will impact this program. Most likely your issue is that you are running on different data and so the program runs wrong. &amp;nbsp;Make the program more flexible so that it adapts to the data that is available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of hard coding the upperbound let SAS count for you. &amp;nbsp;This program should work fine with SAS9.2 (or even older).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro txt(libref,outdir=P:\sourcing\SAS_check);
%local i;
proc sql noprint ;
  select memname into :b1 - :b999999
    from dictionary.tables
    where libname = %upcase("&amp;amp;libref")
  ;
quit;
%do i=1 %to &amp;amp;sqlobs;
proc export data=&amp;amp;libref..&amp;amp;&amp;amp;b&amp;amp;i dbms=tab 
  outfile="&amp;amp;outdir\&amp;amp;&amp;amp;b&amp;amp;i...txt" replace
; 
run;
%end;
%mend txt;

libname OUTPUT 'P:\sample\SAS_check';
%txt(output);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Apr 2017 14:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved/m-p/348415#M273366</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-08T14:41:04Z</dc:date>
    </item>
  </channel>
</rss>

