Hi Folks, Can anyone say what will be the output for the below code? %global PR_FA_H PR_F_A PR_F_I PR_F_S PR_T_C PR_TA_C PR_T_V PR_T_O PR_T_OT PR_TA ENTI DEFINE_ENT PR_SA; %macro autofecha; %let par1=%sysfunc(putn(%sysevalf("&sysdate"d-0),weekday.)); %put par1 = &par1; %if &par1 <= 6 %then %let par2= %sysfunc(putn(%sysevalf("&sysdate"d-(&par1 + 1)),date9.)); %else %let par2= %sysfunc(putn(%sysevalf("&sysdate"d-(1)),date9.)); %put par2=&par2; %let PR_FA_H=%sysfunc(putn(%sysfunc(intnx(month,"%sysfunc(putn("&par2"d,date9.))"d,-0, begin)),date9.)); %let PR_F_A=%sysfunc(putn(%sysfunc(intnx(month,"%sysfunc(putn("&par2"d,date9.))"d,-13, begin)),date9.)); %let PR_F_I=%sysfunc(putn(%sysfunc(intnx(month,"%sysfunc(putn("&par2"d,date9.))"d,-49, begin)),date9.)); %let PR_F_S=%sysfunc(putn(%sysfunc(intnx(month,"%sysfunc(putn("&par2"d,date9.))"d,-7, begin)),date9.)); %put PR_FA_H=&PR_FA_H; %put PR_F_A=&PR_F_A; %put PR_F_I=&PR_F_I; %put PR_F_S=&PR_F_S; %let PR_T_C = 1.2; %let PR_TA_C = 2.0; %let PR_T_V = 1.1; %let PR_T_O = 2.0; %let PR_T_OT = 2.0; %let PR_TA = 2.0; %let ENTI=9999999999; %let DEFINE_ENT= le; %let PR_SA=MCDO; %mend autofecha; %autofecha;
... View more