<?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 WARNING: Apparent symbolic reference BIGN1 not resolved. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-BIGN1-not-resolved/m-p/711596#M219237</link>
    <description>&lt;P&gt;&lt;FONT face="georgia,palatino" size="4"&gt;Happy New Year to you all.&lt;BR /&gt;I have the following in a macro containing proc report but it says - WARNING: Apparent symbolic reference BIGN1 not resolved. Same goes to BIGN2, BIGN3 and BIGN4.&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="georgia,palatino" size="2"&gt;&lt;CODE class=" language-sas"&gt;data _null_;  
	set bign03(where=(cond1=&amp;amp;sub1 and cond2='&amp;amp;sub2')); 
	call symput('bign' || strip(put(tx,8.)), trim(left(put(bign,8.))));
run;

proc report ...;
...;
...;

  define tx1 / display width=20 'A#   N=%trim(&amp;amp;bign1)';
  define tx2 / display width=20 'B#   N=%trim(&amp;amp;bign2)';
  define tx3 / display width=20 'B#   N=%trim(&amp;amp;bign3)';
  define tx4 / display width=20 '   Total#   N=%trim(&amp;amp;bign4)';
...;
run;
&lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="georgia,palatino" size="4"&gt;I tested by conditioning on cond1=1 and cond2='A' and running it outside of the macro and it runs without this warning or errors.&lt;BR /&gt;I don't understand why. Could you please advise what have I not done right here?&lt;BR /&gt;Thanking you in advance.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 04:44:48 GMT</pubDate>
    <dc:creator>Miracle</dc:creator>
    <dc:date>2021-01-15T04:44:48Z</dc:date>
    <item>
      <title>WARNING: Apparent symbolic reference BIGN1 not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-BIGN1-not-resolved/m-p/711596#M219237</link>
      <description>&lt;P&gt;&lt;FONT face="georgia,palatino" size="4"&gt;Happy New Year to you all.&lt;BR /&gt;I have the following in a macro containing proc report but it says - WARNING: Apparent symbolic reference BIGN1 not resolved. Same goes to BIGN2, BIGN3 and BIGN4.&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="georgia,palatino" size="2"&gt;&lt;CODE class=" language-sas"&gt;data _null_;  
	set bign03(where=(cond1=&amp;amp;sub1 and cond2='&amp;amp;sub2')); 
	call symput('bign' || strip(put(tx,8.)), trim(left(put(bign,8.))));
run;

proc report ...;
...;
...;

  define tx1 / display width=20 'A#   N=%trim(&amp;amp;bign1)';
  define tx2 / display width=20 'B#   N=%trim(&amp;amp;bign2)';
  define tx3 / display width=20 'B#   N=%trim(&amp;amp;bign3)';
  define tx4 / display width=20 '   Total#   N=%trim(&amp;amp;bign4)';
...;
run;
&lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="georgia,palatino" size="4"&gt;I tested by conditioning on cond1=1 and cond2='A' and running it outside of the macro and it runs without this warning or errors.&lt;BR /&gt;I don't understand why. Could you please advise what have I not done right here?&lt;BR /&gt;Thanking you in advance.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 04:44:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-BIGN1-not-resolved/m-p/711596#M219237</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2021-01-15T04:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference BIGN1 not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-BIGN1-not-resolved/m-p/711598#M219238</link>
      <description>&lt;P&gt;Check your SAS log for the notes. In particular the notes from the DATA _NULL_ step that is creating the macro variables. It will most likely show that zero observations were read from the BIGN03 dataset.&lt;/P&gt;
&lt;P&gt;That is because I suspect that you wanted the WHERE= dataset option to compare the value of the variable COND2 to the value of the macro variable SUB2.&amp;nbsp; Instead you tested if the variable COND2 literally match the string '&amp;amp;sub2'.&amp;nbsp; This is because macro code inside of single quotes is ignored. Use double quote characters instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set bign03 ;
  where cond1=&amp;amp;sub1 and cond2="&amp;amp;sub2";
  call symputx(cats('bign',tx),bign);
run;

proc report ... ; 
  define tx1 / display width=20 "A# N=&amp;amp;bign1"; 
  define tx2 / display width=20 "B# N=&amp;amp;bign2"; 
  define tx3 / display width=20 "B# N=&amp;amp;bign3";
  define tx4 / display width=20 "Total# N=&amp;amp;bign4"; 
  ...
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 05:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-BIGN1-not-resolved/m-p/711598#M219238</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-01-15T05:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference BIGN1 not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-BIGN1-not-resolved/m-p/711602#M219241</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;for your quick response.&lt;BR /&gt;It is now working after replacing the single quote to double quotes.&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 06:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-BIGN1-not-resolved/m-p/711602#M219241</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2021-01-15T06:20:53Z</dc:date>
    </item>
  </channel>
</rss>

