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;
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.
|
proc format lib=sasuser cntlout=sasuser.fmtdata; select $airport; run;
proc print data=sasuser.fmtdata (obs=5) noobs; var fmtname start end label min max default length fuzz; run;
proc format library=sasuser cntlin=sasuser.fmtdata;
run;
proc format lib=sasuser fmtlib;
select $airport;
run;
FORMAT NAME : $AIRPORT
LENGTH: 22 NUMBER OF VALUES: 56 MIN LENGTH: 1 MAX LENGTH: 40 DEFAULT
LENGTH: 22 FUZZ: 0
|
||
---|---|---|
START
|
END
|
LABEL (CONT'D)
|
SYD
|
END
|
Sydney, New South Wales
|
VIE
|
VIE
|
Wien (Vienna)
|
WLG
|
WLG
|
Wellington
|
YQB
|
YQB
|
Quebec, QC
|
YUL
|
YUL
|
Montreal, QC
|
YYC
|
YYC
|
Calgary, AB
|
YYZ
|
YYZ
|
Toronto, ON
|