I need to produce the report from the sas dataset t_final_Summary. When I use
the proc report or proc tabulate I won't get the rows for those where column
does not have the value in them. So, I created a new dataset named Expiring
with same columns as in the report.
The t_final_Summary has columns named--Sub_LOB,Group,Mat_Month and Comm_Incl.
I am trying to pass the value of the macros from that table to another table
named Expiring which has the columns named Sub_LOB, Group,Sum_of_Comm_Incl for
varying Mat_month. I wrote the following code:
%macro mat (sub,grp,mth,MCRO);
proc sql no print;
select case
when Sum(Comm_incl)=. then 0
else sum(Comm_Incl)
end format=16.2
into :&MCRO.
from t_final_Summary
where Sub_LOB= "&sub."
and Group="&grp."
and Mat_Month="&mth.";
quit;
%mend mat;
%mat(CRE Commercial, Carolina Group, _Expired, goid);
/*Now I want to check my macro variable goid using %put*/
%put &goid;
Then the log always tells me that the macro goid is not resolved. Is there any
error in the macro statements.
I could not figure out. Can anyone help me please?