mfv_existfolder.sas File Reference

Checks whether a folder exists in SAS Drive. More...

Go to the source code of this file.

Detailed Description

Returns 1 if the folder exists, and 0 if it doesn't. Works by attempting to assign a fileref with the filesrvc engine. If not found, the syscc is automatically set to a non zero value - so in this case it is reset. To avoid hiding issues, there is therefore a test at the start to ensure the syscc is zero.

Usage:

%put %mfv_existfolder(/does/exist);
%put %mfv_existfolder(/does/not/exist);
Parameters
[in]pathThe path to the folder on SAS drive

SAS Macros

Related Macros

Version
3.5
Author
Allan Bowe

Definition in file mfv_existfolder.sas.