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.
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!