data _null_;
length dref $8;
rc = filename(dref,"C:\Documents and Settings");
did = dopen(dref);
if did
then do;
call symputx("dir_open","1");
rc = dclose(did);
end;
else call symputx("dir_open","0");
rc = filename(dref);
run;
Macro variable dir_open can be used as a boolean value to make the decision of either continuing or sending the mail.
data _null_;
length dref $8;
rc = filename(dref,"C:\Documents and Settings");
did = dopen(dref);
if did
then do;
call symputx("dir_open","1");
rc = dclose(did);
end;
else call symputx("dir_open","0");
rc = filename(dref);
run;
Macro variable dir_open can be used as a boolean value to make the decision of either continuing or sending the mail.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.