<?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: DATA Null not resolving within Macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469681#M285569</link>
    <description>&lt;P&gt;The comparison is case sensitive, so summer_build is not the same as Summer_Build. Could that be your issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post your full log with the debugging options turned on:&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;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19508"&gt;@smilbuta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello Community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having an issue where a Data null step witin a macro is not resolving...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the abridged code i am building..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%MACRO BLDTERM(TBL_BUILD,COHORT_YEAR,PRELIM,TERM_ID);

data _null_;
	if "&amp;amp;TBL_BUILD" = "Summer_Table" then do;
		CALL SYMPUT('TERMV','1');
	end;
run;

Proc SQl;
Creat table TEST as 
SELECT ..... [extra columns removed for clarity]

	   /*Summer*Flags*/
 CASE WHEN &amp;amp;TERMV = '1' THEN 1 ELSE 0 END format=8. AS SUMMER_ALL,
 CASE WHEN &amp;amp;TERMV = '1' AND &amp;amp;DSNAME..CF_FPTIME_IND = 'F' THEN 1 ELSE 0 END format=8. AS SUMMER_FULL_TIME,
 CASE WHEN &amp;amp;TERMV = '1' AND &amp;amp;DSNAME..CF_FPTIME_IND = 'P' THEN 1 ELSE 0 END format=8. AS SUMMER_PART_TIME,

 ..... [extra columns removed for clarity]
QUIT;&lt;BR /&gt;&lt;BR /&gt;%MEND BLDTERM;&lt;/PRE&gt;
&lt;P&gt;The Log Says my submitted code looks as follows...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CASE WHEN &amp;amp;TERMV = '1' THEN 1 ELSE 0 END format=8. AS SUMMER_ALL,&lt;/P&gt;
&lt;P&gt;CASE WHEN &amp;amp;TERMV = '1' AND PRELIM_DATA_DIM.CF_FPTIME_IND = 'F' THEN 1 ELSE 0 END format=8. AS UMMER_FULL_TIME,&lt;/P&gt;
&lt;P&gt;CASE WHEN &amp;amp;TERMV = '1' AND PRELIM_DATA_DIM.CF_FPTIME_IND = 'P' THEN 1 ELSE 0 END format=8. AS SUMMER_PART_TIME,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &amp;amp;TERMV variable neverver resolves to the integer so all my Cases resolve to 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance is greatly apreciated.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jun 2018 16:59:20 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-06-12T16:59:20Z</dc:date>
    <item>
      <title>DATA Null not resolving within Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469678#M285567</link>
      <description>&lt;P&gt;Hello Community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having an issue where a Data null step witin a macro is not resolving...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the abridged code i am building..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%MACRO BLDTERM(TBL_BUILD,COHORT_YEAR,PRELIM,TERM_ID);

data _null_;
	if "&amp;amp;TBL_BUILD" = "Summer_Table" then do;
		CALL SYMPUT('TERMV','1');
	end;
run;

Proc SQl;
Creat table TEST as 
SELECT ..... [extra columns removed for clarity]

	   /*Summer*Flags*/
 CASE WHEN &amp;amp;TERMV = '1' THEN 1 ELSE 0 END format=8. AS SUMMER_ALL,
 CASE WHEN &amp;amp;TERMV = '1' AND &amp;amp;DSNAME..CF_FPTIME_IND = 'F' THEN 1 ELSE 0 END format=8. AS SUMMER_FULL_TIME,
 CASE WHEN &amp;amp;TERMV = '1' AND &amp;amp;DSNAME..CF_FPTIME_IND = 'P' THEN 1 ELSE 0 END format=8. AS SUMMER_PART_TIME,

 ..... [extra columns removed for clarity]
QUIT;&lt;BR /&gt;&lt;BR /&gt;%MEND BLDTERM;&lt;/PRE&gt;
&lt;P&gt;The Log Says my submitted code looks as follows...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CASE WHEN &amp;amp;TERMV = '1' THEN 1 ELSE 0 END format=8. AS SUMMER_ALL,&lt;/P&gt;
&lt;P&gt;CASE WHEN &amp;amp;TERMV = '1' AND PRELIM_DATA_DIM.CF_FPTIME_IND = 'F' THEN 1 ELSE 0 END format=8. AS UMMER_FULL_TIME,&lt;/P&gt;
&lt;P&gt;CASE WHEN &amp;amp;TERMV = '1' AND PRELIM_DATA_DIM.CF_FPTIME_IND = 'P' THEN 1 ELSE 0 END format=8. AS SUMMER_PART_TIME,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &amp;amp;TERMV variable neverver resolves to the integer so all my Cases resolve to 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance is greatly apreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 16:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469678#M285567</guid>
      <dc:creator>smilbuta</dc:creator>
      <dc:date>2018-06-12T16:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: DATA Null not resolving within Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469680#M285568</link>
      <description>&lt;P&gt;Perhaps this step is never true:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;if "&amp;amp;TBL_BUILD" = "Summer_Table"&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jun 2018 16:58:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469680#M285568</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-12T16:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: DATA Null not resolving within Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469681#M285569</link>
      <description>&lt;P&gt;The comparison is case sensitive, so summer_build is not the same as Summer_Build. Could that be your issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post your full log with the debugging options turned on:&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;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19508"&gt;@smilbuta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello Community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having an issue where a Data null step witin a macro is not resolving...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the abridged code i am building..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%MACRO BLDTERM(TBL_BUILD,COHORT_YEAR,PRELIM,TERM_ID);

data _null_;
	if "&amp;amp;TBL_BUILD" = "Summer_Table" then do;
		CALL SYMPUT('TERMV','1');
	end;
run;

Proc SQl;
Creat table TEST as 
SELECT ..... [extra columns removed for clarity]

	   /*Summer*Flags*/
 CASE WHEN &amp;amp;TERMV = '1' THEN 1 ELSE 0 END format=8. AS SUMMER_ALL,
 CASE WHEN &amp;amp;TERMV = '1' AND &amp;amp;DSNAME..CF_FPTIME_IND = 'F' THEN 1 ELSE 0 END format=8. AS SUMMER_FULL_TIME,
 CASE WHEN &amp;amp;TERMV = '1' AND &amp;amp;DSNAME..CF_FPTIME_IND = 'P' THEN 1 ELSE 0 END format=8. AS SUMMER_PART_TIME,

 ..... [extra columns removed for clarity]
QUIT;&lt;BR /&gt;&lt;BR /&gt;%MEND BLDTERM;&lt;/PRE&gt;
&lt;P&gt;The Log Says my submitted code looks as follows...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CASE WHEN &amp;amp;TERMV = '1' THEN 1 ELSE 0 END format=8. AS SUMMER_ALL,&lt;/P&gt;
&lt;P&gt;CASE WHEN &amp;amp;TERMV = '1' AND PRELIM_DATA_DIM.CF_FPTIME_IND = 'F' THEN 1 ELSE 0 END format=8. AS UMMER_FULL_TIME,&lt;/P&gt;
&lt;P&gt;CASE WHEN &amp;amp;TERMV = '1' AND PRELIM_DATA_DIM.CF_FPTIME_IND = 'P' THEN 1 ELSE 0 END format=8. AS SUMMER_PART_TIME,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &amp;amp;TERMV variable neverver resolves to the integer so all my Cases resolve to 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance is greatly apreciated.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 16:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469681#M285569</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-12T16:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: DATA Null not resolving within Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469683#M285570</link>
      <description>&lt;P&gt;Look at the log. You are comparing an integer 1 (resolved from &amp;amp;termv) with the string '1'.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 17:03:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469683#M285570</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-12T17:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: DATA Null not resolving within Macro (RESOLVED)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469688#M285571</link>
      <description>&lt;P&gt;Thanks for the guidance,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was the '1' and "1" I swear, quotes are going to kill me one day....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The folloing code now works...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%MACRO BLDTERM(TBL_BUILD,COHORT_YEAR,PRELIM,TERM_ID);

data _null_;
	if "&amp;amp;TBL_BUILD" = "SUMMER_TBL_2" then do;
		CALL SYMPUT('TERMV','1');
	end;
run;
data _null_;
	if "&amp;amp;prelim" = "P" then do;
		CALL SYMPUT('DSNAME','PRELIM_SDCF_DATA_DIM');
	end;
	else do;
		CALL SYMPUT('DSNAME','SDCF_DATA_DIM');
	end;
run;

proc sql;
   create table work.&amp;amp;TBL_BUILD as
   select &amp;amp;COHORT_YEAR format=$9. AS COHORT_YEAR,
       CASE WHEN "&amp;amp;TERMV" = "1" THEN 1 ELSE 0 END format=8. AS SUMMER_ALL,
       CASE WHEN "&amp;amp;TERMV" = "1" AND &amp;amp;DSNAME..CF_FPTIME_IND = 'F' THEN 1 ELSE 0 END format=8. AS SUMMER_FULL_TIME,
       CASE WHEN "&amp;amp;TERMV" = "1" AND &amp;amp;DSNAME..CF_FPTIME_IND = 'P' THEN 1 ELSE 0 END format=8. AS SUMMER_PART_TIME
   from DIM.&amp;amp;DSNAME;
quit;

%MEND BLDTERM;

%BLDTERM(SUMMER_TBL_2,"&amp;amp;COHORT_YEAR",F,"&amp;amp;SUMMER_TERM_ID");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 17:32:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469688#M285571</guid>
      <dc:creator>smilbuta</dc:creator>
      <dc:date>2018-06-12T17:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: DATA Null not resolving within Macro (RESOLVED)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469689#M285572</link>
      <description>&lt;P&gt;In SAS code there is no difference between "1" and '1'. Both define the one character string literal.&lt;/P&gt;
&lt;P&gt;There is a big difference between 1 and '1'. One is a number and the other is a string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;CASE WHEN "&amp;amp;TERMV" = '1' THEN &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In macro code quotes are really just part of the string, not required syntax to let the parser know you meant a string literal. So this test will fail.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if "1" = '1'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;You could let the macro processor treat both as numbers.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if &amp;amp;termv = 1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or add the double quotes around both.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if "&amp;amp;termv" = "1"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jun 2018 17:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469689#M285572</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-06-12T17:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: DATA Null not resolving within Macro (RESOLVED)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469696#M285573</link>
      <description>&lt;P&gt;So it was my Variable in the Case that was resolving to the numeric 1?&amp;nbsp; I thought by default callsymput resolves to a string?&lt;/P&gt;
&lt;P&gt;When i double quoted all it worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 17:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469696#M285573</guid>
      <dc:creator>smilbuta</dc:creator>
      <dc:date>2018-06-12T17:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: DATA Null not resolving within Macro (RESOLVED)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469698#M285574</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19508"&gt;@smilbuta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So it was my Variable in the Case that was resolving to the numeric 1?&amp;nbsp; I thought by default callsymput resolves to a string?&lt;/P&gt;
&lt;P&gt;When i double quoted all it worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Everything created from the macro preprocessor is text, but it is&amp;nbsp;&lt;EM&gt;program text&lt;/EM&gt;, not&amp;nbsp;&lt;EM&gt;data text&lt;/EM&gt; (aka strings). So if the macro variable contains a single character 1, that is placed in the code and interpreted by SQL as a number. Putting the macro variable in quotes lets the SQL see a string.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 17:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469698#M285574</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-12T17:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: DATA Null not resolving within Macro (RESOLVED)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469699#M285575</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19508"&gt;@smilbuta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the guidance,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was the '1' and "1" I swear, quotes are going to kill me one day....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then why even use quotes in this case around these variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO BLDTERM(TBL_BUILD,COHORT_YEAR,PRELIM,TERM_ID);
%if &amp;amp;tbl_build=SUMMER_TBL_2 %then %do;
    proc sql;
        create table work.&amp;amp;tbl_build as
              1 as summer_all,
              case when &amp;amp;dsname..cf_fptime_ind = 'F' then 1 else 0 end as summer_full_time,
              ...
    quit;
%end;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 18:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469699#M285575</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-12T18:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: DATA Null not resolving within Macro (RESOLVED)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469703#M285576</link>
      <description>&lt;P&gt;I know its confusing but the code actualy parces all three terms Fall, Summer, Spring.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The columns in my example simply reflected the summer action, The data null step has all three terms being evaluated. so based on the term parced, it makes the term table accordingly and flags the respective summer , fall or spring coulmns accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My examples was trimmed down to 1 term as it was occuring across all three.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 18:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469703#M285576</guid>
      <dc:creator>smilbuta</dc:creator>
      <dc:date>2018-06-12T18:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: DATA Null not resolving within Macro (RESOLVED)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469752#M285577</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19508"&gt;@smilbuta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I know its confusing but the code actualy parces all three terms Fall, Summer, Spring.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The columns in my example simply reflected the summer action, The data null step has all three terms being evaluated. so based on the term parced, it makes the term table accordingly and flags the respective summer , fall or spring coulmns accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My examples was trimmed down to 1 term as it was occuring across all three.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;None of this addresses why quoted integers are needed, the entire code could be written without creating values of a macro variable that are '1' or "1", but with %if statements.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 20:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Null-not-resolving-within-Macro/m-p/469752#M285577</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-12T20:28:18Z</dc:date>
    </item>
  </channel>
</rss>

