Production Ready Macros for SAS Application Developers
mp_searchdata.sas File Reference

Searches all data in a library. More...

Go to the source code of this file.

Detailed Description

Scans an entire library and creates a copy of any table containing a specific string or numeric value. Only matching records are written out. If both a string and numval are provided, the string will take precedence.

Usage:

%mp_searchdata(lib=sashelp, string=Jan)
%mp_searchdata(lib=sashelp, numval=1)

Outputs zero or more tables to an MPSEARCH library with specific records.

Dependencies

Version
9.2
Author
Allan Bowe

Definition in file mp_searchdata.sas.