Hi,
I would like some help please
I have this peace of code which gives me a result of 354 for MONTHID1 , I don't know too much about macro so how do I get a new macro called month_id3 that results in 351 using MONTHID 1 , I have tried this
%let today=%sysfunc(today());
mthid1=intck('month','01jan1990'd,&today.)+1-1;
call symput('MONTHID1',put(mthid1,3.));
%let month_id = %str(%')&MONTHID1.%str(%');/*'354';*/
%let month_id3 = '(&MONTHID1.-3)'; /* this doesn't work)
%put &month_id ***&month_id3***;
Many thanks