SASUnit Examples  Version 1.3.0
_existdir.sas
Go to the documentation of this file.
1 
23 %MACRO _existDir(i_dir
24  );
25  %LOCAL rc did filrf;
26  %LET filrf=_tmpf;
27  %LET rc=%sysfunc(filename(filrf,&i_dir));
28  %LET did=%sysfunc(dopen(_tmpf));
29  %IF &did NE 0 %THEN %DO;
30  1
31  %LET rc=%sysfunc(dclose(&did));
32  %END;
33  %ELSE %DO;
34  0
35  %END;
36  %LET rc=%sysfunc(filename(filrf));
37 %MEND _existDir;