libname myfmts 'c:sas
ewfmt';
proc format lib=myfmts fmtlib;
run;
General form, PROC FORMAT
with FMTLIB and the SELECT and EXCLUDE statements:
PROC FORMAT LIB=library FMTLIB;
SELECT format-name;
EXCLUDE format-name;
RUN;
library
is the name of the
library where the formats are stored. If you do not specify the LIB=
option, formats in the Work library are listed.
format-name
is the name of the
format that you want to select or exclude.
|
libname myfmts 'c:sas
ewfmt';
proc format lib=myfmts fmtlib;
select $routes;
run;
FORMAT NAME : $ROUTES
LENGTH: 7 NUMBER OF VALUES: 5 MIN LENGTH: 1 MAX LENGTH: 40 DEFAULT
LENGTH: 7 FUZZ: 0
|
||
---|---|---|
START
|
END
|
LABEL (VER. V7|V8 29AUG2002:11:13:14)
|
|
Missing
|
|
Route1
|
Route1
|
Zone 1
|
Route2
|
Route4
|
Zone 2
|
Route5
|
Route7
|
Zone 3
|
**OTHER**
|
**OTHER**
|
Unknown
|
select $routes newdate;
General form, PROC CATALOG
step:
PROC CATALOG CATALOG=libref.catalog;
CONTENTS <OUT=SAS-data-set>;
COPY
OUT=libref.catalog <options>;
SELECT entry-name.entry-type(s);
EXCLUDE entry-name.entry-type(s);
DELETE entry-name.entry-type(s);
RUN;
QUIT;
libref.catalog
with the CATALOG= argument
is the SAS catalog to be processed.
SAS-data-set
is the name of the
data set that will contain the list of the catalog contents.
libref.catalog
with the OUT= argument
is the SAS catalog to which the catalog entries will be copied.
entry-name.entry-type(s)
are the full names
of catalog entries (in the form name.type)
that you want to process.
|
proc catalog catalog=myfmts.formats; copy out=work.formats; select routes.formatc; run; proc catalog cat=work.formats; contents; run; quit;