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.
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.