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.