SAS Format USE

zhaozj2021-02-16  58

Output Format to the table

PROC FORMAT CNTLOUT = Table name library = library name; SELECT output FORMAT list;

Run;

Proc Format Statement

Proc Format

To do this Use this option Specify a SAS data set from which PROC FORMAT builds an informat or format CNTLIN = Create a SAS data set that stores information about informats or formats CNTLOUT = Print information about informats or formats FMTLIBSpecify a SAS catalog that will contain the informats or formats that you are creating in the PROC FORMAT step LIBRARY = Specify the number of characters of the informatted or formatted value that appear in PROC FORMAT output MAXLABLEN = Specify the number of characters of the start and end values ​​that appear in the PROC FORMAT Output maxselen = prevent a new informat or format from replacing an existing one of the same name NorePlaceprint Information About Each Format And Informat On A Separate Page Page

Options

CNTLIN =

INPUT-Control-Sas-Data-Set

specifies a SAS data set from which PROC FORMAT builds informats and formats. CNTLIN = builds formats and informats without using a VALUE, PICTURE, or INVALUE statement. If you specify a one-level name, the procedure searches only the default data library (either ................................... ...CRIPLILE, THE.

Tip: a comMMon Source for an INPUT CONTROL DATA Set is The output from the cntlout = Option of another proc Format STEP.

CNTLOUT =

Output-Control-Sas-Data-Set

.

If you are creating an informat or format in the same step that the CNTLOUT = options appears, the informat or format that you are creating is included in the CNTLOUT = data set.If you specify a one-level name, the procedure stores the data Set in The Default Data Library (Either The Work Data Library or the User Data Library), Regardless of Whather You Specify The Library = Option.

.

FMTLIB

prints information about all the informats and formats in the catalog that is specified in the LIBRARY = option. To get information only about specific informats or formats, subset the catalog using the SELECT or EXCLUDE statement.

Interaction: The PAGE option invokes FMTLIB.Tip: If your output from FMTLIB is not formatted correctly, try increasing your linesize.Tip: If you use the SELECT or EXCLUDE statement and omit the FMTLIB and CNTLOUT = options, the procedure invokes the FMTLIB option AND You Receive FMTLIB OPTION OTPUT.

Library =

Libref <.catalog>

specifies a catalog to contain informats or formats you are creating in the current PROC FORMAT step. The procedure stores these informats and formats in the catalog you specify so that you can use them in subsequent SAS sessions or jobs.

Alias: lib = default: Work.formatstip: SAS Automatically Searches Library.Formats. You may Want To Use The Library Libref for your format catalog.

Maxlablen =

Number-of-characters

specifies the number of characters in the informatted or formatted value that you want to appear in the CNTLOUT = data set or in the output of the FMTLIB option. The FMTLIB option prints a maximum of 40 characters for the informatted or formatted value.MAXSELEN =

Number-of-characters

specifies the number of characters in the start and end values ​​that you want to appear in the CNTLOUT = data set or in the output of the FMTLIB option. The FMTLIB option prints a maximum of 16 characters for start and end values.

NOREPLACE

prevents a new informat or format that you are creating from replacing an existing informat or format of the same name. If you omit NOREPLACE, the procedure warns you that the informat or format already exists and replaces it.

Page

PRINTS Information About Each Format And Informat (That IS, EACH Entry) In The Catalog ON A Separate Page.

Tip: The page Option Activates The Fmtlib Option.

转载请注明原文地址:https://www.9cbs.com/read-16338.html

New Post(0)