Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mp_distinctfmtvalues.sas File Reference

Creates a dataset containing distinct formatted values. More...

Go to the source code of this file.

Detailed Description

If no format is supplied, then the original value is used instead. There is also a dependency on other macros within the Macro Core library. Usage:

%mp_distinctfmtvalues(libds=sashelp.class,var=age,outvar=age,outds=test)
Parameters
libdsinput dataset
varvariable to get distinct values for
outvarvariable to create. Default: formatted_value
outdsdataset to create. Default: work.mp_distinctfmtvalues
varlenlength of variable to create (default 200)
Version
9.2
Author
Allan Bowe

Definition in file mp_distinctfmtvalues.sas.