SAS Macro: %metacodaPersonExtract
Purpose
This macro is used to extract basic attribute values for Person objects (users) from SAS metadata.
Parameters
%macro metacodaPersonExtract(
table=,
xmlDir=,
debug=0
);
This macro accepts several mandatory and optional named parameters and generates a SAS table as output.
table: (MANDATORY)
The output table name (1 or 2 level) that will be overwritten.
xmlDir: (OPTIONAL)
Path to a directory where PROC METADATA request, response, and map XML files will be written. If unspecified the work directory path will be used by default.
debug: (OPTIONAL)
A flag (0/1) indicating whether to generate additional debug info for troubleshooting purposes. The default is zero for no debug.
Examples
Extract basic metadata attributes for all users:
%metacodaPersonExtract(table=work.persons)
For more examples see metacodaPersonExtractSample.sas.