|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Checks whether a CAS sashdat dataset exists in persistent storage. More...
Go to the source code of this file.
Can be used in open code, eg as follows:
%if %mfv_existsashdat(libds=casuser.sometable) %then %put yes it does!;
The function uses dosubl() to run the table.fileinfo action, for the specified library, filtering for *.sashdat tables.
Results are cached in a WORK table (&outprefix._&lib). If that table already exists it is queried directly to avoid the dosubl() overhead. To force a rescan, use a new &outprefix value or delete the cache table before calling.
| [in] | libds | library.dataset |
| [out] | outprefix= | (work.mfv_existsashdat) Used to store current HDATA tables to improve subsequent query performance. This reference is a prefix and is converted to &prefix._{libref} |
Definition in file mfv_existsashdat.sas.