|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Apply a set of formats to a table. More...
Go to the source code of this file.
Applies a set of formats to the metadata of one or more SAS datasets. Can be used to migrate formats from one table to another. The input table must contain the following columns:
The macro will abort in the following scenarios:
Example usage:
data work.example; set sashelp.prdsale; format _all_ clear; run; %mp_getcols(sashelp.prdsale,outds=work.cols) data work.cols2; set work.cols; lib='WORK'; ds='EXAMPLE'; var=name; fmt=format; keep lib ds var fmt; run; %mp_applyformats(work.cols2)
| [in] | inds | The input dataset containing the formats to apply (and where to apply them). Example structure:
| ||||||||||||||||||||||||||||||||||||||||||||
| [out] | errds= | (0) Provide a libds reference here to export the error messages to a table. In this case, they will not be printed to the log. |
Definition in file mp_applyformats.sas.