Previous Page | Next Page

The FORMAT Procedure

Example 6: Printing the Description of Informats and Formats


Procedure features:

PROC FORMAT statement option:

FMTLIB

SELECT statement

Format:

NOZEROS.

Informat:

Evaluation.


This example illustrates how to print a description of an informat and a format. The description shows the values that are input and output.


Program

 Note about code
libname library 'SAS-library';
 Note about code
options nodate pageno=1 linesize=80 pagesize=60;
 Note about code
proc format library=library fmtlib;
 Note about code
   select @evaluation nozeros;
 Note about code
   title 'FMTLIB Output for the NOZEROS. Format and the';
   title2 'Evaluation. Informat';
run;

Output: Listing

 Note about figure
                 FMTLIB Output for the NOZEROS. Format and the                 1
                              Evaluation. Informat

  ----------------------------------------------------------------------------
  |       FORMAT NAME: NOZEROS  LENGTH:    5   NUMBER OF VALUES:    4        |
  |   MIN LENGTH:   1  MAX LENGTH:  40  DEFAULT LENGTH   5  FUZZ: STD        |
  |--------------------------------------------------------------------------|
  |START           |END             |LABEL  (VER. V7|V8   10APR2002:18:55:08)|
  |----------------+----------------+----------------------------------------|
  |LOW             |              -1|00.00               P-  F  M100         |
  |              -1<               0<99                  P-. F  M100         |
  |               0|               1<99                  P.  F  M100         |
  |               1|HIGH            |00.00               P   F  M100         |
  ----------------------------------------------------------------------------


  ----------------------------------------------------------------------------
  |                   INFORMAT NAME: @EVALUATION LENGTH: 1                   |
  |   MIN LENGTH:   1  MAX LENGTH:  40  DEFAULT LENGTH   1  FUZZ:        0   |
  |--------------------------------------------------------------------------|
  |START           |END             |INVALUE(VER. 9.2     26JAN2007:16:11:56)|
  |----------------+----------------+----------------------------------------|
  |C               |C               |                                       1|
  |E               |E               |                                       2|
  |N               |N               |                                       0|
  |O               |O               |                                       4|
  |S               |S               |                                       3|
  ----------------------------------------------------------------------------

Output: HTML

[untitled graphic]

Previous Page | Next Page | Top of Page