Hello, I have a syntax error for below's code. ERROR: No logical assign for filename FIC Can anyone please help? %macro param_date();
data _null_;
infile fic;
input exec $12.;
call symput("exec",compress(exec));
run;
data _null_;
%if ^%symexist(exec) %then %do;
data _null_;
set param.LANCEMENT_IMAGES_W6(where=(DT_DEB_PASSAGE<=date()<=DT_FIN_PASSAGE));
call symput('lib', cat(ANNEE_IMAGE, SEMAINE_IMAGE));
call symput('mois', LOWCASE(cat(ANNEE_IMAGE, SEMAINE_IMAGE)));
call symputx("date_exec","'"||put(date(),date9.)||"'d","G");
call symputx("DATE_EXTRACTION","'"||put(intnx('week.2',date(),0,'e'),date9.)||"'d","G");
run;
%end;
%else %if &exec. ne %then %do;
data _null;
set param.LANCEMENT_IMAGES_W6(where=(DT_DEB_PASSAGE<=&exec.<=DT_FIN_PASSAGE));
call symput('lib', cat(ANNEE_IMAGE, SEMAINE_IMAGE));
call symput('mois', LOWCASE(cat(ANNEE_IMAGE, SEMAINE_IMAGE)));
call symputx("date_exec","'"||put(dt_image,date9.)||"'d","G");
call symputx("DATE_EXTRACTION","'"||put(dt_image,date9.)||"'d","G");
call symputx("DATE_PREMIERE_PASS","'28MAR2018'd","G");
run;
%end;
run;
%mend;
%param_date;
... View more