Creating SAS Data Sets from Custom Formats

Overview

You know how to create a format from a SAS data set, but what if you want to create a SAS data set from a format? To do this, you use the CNTLOUT= option.
General form, CNTLOUT= option in PROC FORMAT:
PROC FORMAT LIBRARY=libref.catalog CNTLOUT=SAS-data-set;
SELECT format-name format-name...;
EXCLUDE format-name format-name...;
RUN;
Here is an explanation of the syntax:
libref.catalog
is the name of the catalog in which the format is located.
SAS-data-set
is the name of the SAS data set that you want to create.
format-name
is the name of the format that you want to select or exclude.
The output control data set will contain variables that completely describe all ...

Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.