Hi.. I am trying to remote submit the following SAS code but the log returns 'remote submit complete' without even running it.. Anyone knows what is wrong with my code? Here is the log message: NOTE: Remote submit to commencing. 381 %extract(d1 = 01MAY2019, d2 = 31JUL2019); NOTE: Remote submit to complete. rsubmit;
%macro extract(d1=, d2=);
%let start_date = &d1.;
%let end_date = &d2.;
%let i = 1;
%let dt1 = &start_date.;
%do %while ("&dt1."d <= "&end_date."d);
%let dt1 = %sysfunc(putn("&dt1."d, date9.));
%let dt2 = &dt1.;
%let dt2 = %sysfunc(putn("&dt1."d, yymmddn8.));
%let dt3 = %sysfunc(intnx(day, "&dt1."d, -1, s), date9.);
%if %sysfunc(exist(prod.Tdaf_var_nonprime_&dt2.)) %then %do;
data dataset_&dt2.;
set prod.dataset_&dt2. (obs = 10);
run;
%let dt1 = %sysfunc(intnx(day, "&dt1."d, 1, s), date9.);
%let i = %eval(&i. + 1);
%end;
%else %let dt1 = %sysfunc(intnx(day, "&dt1."d, 1, s), date9.);
%end;
%let m = %eval(&i. - 1);
%mend;
endrsubmit;
rsubmit;
%extract(d1 = 01MAY2019, d2 = 31JUL2019);
endrsubmit;
... View more