Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_islibds.sas File Reference

Checks whether a string follows correct library.dataset format. More...

Go to the source code of this file.

Detailed Description

Many macros in the core library accept a library.dataset parameter referred to as 'libds'. This macro validates the structure of that parameter, eg:

  • 8 character libref?
  • 32 character dataset?
  • contains a period?

It does NOT check whether the dataset exists, or if the library is assigned.

Usage:

%put %mf_islibds(work.something)=1;
%put %mf_islibds(nolib)=0;
%put %mf_islibds(badlibref.ds)=0;
%put %mf_islibds(w.t.f)=0;
Parameters
[in]libdsThe string to be checked
Returns
output Returns 1 if libds is valid, 0 if it is not

Related Macros

Version
9.2

Definition in file mf_islibds.sas.