Hi Guys need some help,
Have the following code below:-
Which does a count on the holiday Field in the Merged Table and puts that count into a Variable. then checks to see if the count is ne 0, if so then run a macro called ChkHolidays.
But im getting the below error, and im not sure why..
Im thinking that because there is no data in the "Holidays" column, then for some reason its not creating the Variable Count_Line (correct?) if so, is there some function to check if a variable has been set or made?
Any Ideas?
Thanks in advance
Shenn
Have the following code below:-
Code:
proc sql noprint;
select count (Holiday) into :count_Line
from Merged
Where Holiday ne "";
quit;
%if (&count_Line ne 0) %then
%do;
%ChkHolidays();
%end;
Which does a count on the holiday Field in the Merged Table and puts that count into a Variable. then checks to see if the count is ne 0, if so then run a macro called ChkHolidays.
But im getting the below error, and im not sure why..
Code:
WARNING: Apparent symbolic reference COUNT_LINE not resolved.
ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric
operand is required. The condition was: (&count_Line ne 0)
ERROR: The macro BANKHOLIDAYS will stop executing.
MLOGIC(BANKHOLIDAYS): Ending execution.
Im thinking that because there is no data in the "Holidays" column, then for some reason its not creating the Variable Count_Line (correct?) if so, is there some function to check if a variable has been set or made?
Any Ideas?
Thanks in advance
Shenn