SAS Macro: %metacodaPersonPhoneExtract
Purpose
This macro is used to extract basic attribute values for SAS metadata Phone (number) objects that are associated with Person (user) objects.
Parameters
%macro metacodaPersonPhoneExtract(
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 phone metadata for all users:
%metacodaPersonPhoneExtract(table=work.personPhones)
For more examples see metacodaPersonPhoneExtractSample.sas.