Chapter Contents

Previous

Next
The FORMAT Procedure

Example 6: Printing the Description of Informats and Formats


Procedure features:
PROC FORMAT statement option:
FMTLIB
SELECT statement
Format:
NOZEROS .
Informat:
EVAL. .

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

libname library 'SAS-data-library';
options nodate pageno=1 linesize=80 pagesize=60;






 Note about code
proc format library=library fmtlib;


 Note about code
   select @eval nozeros;
   title 'FMTLIB Output for the NOZEROS. Format and the';
   title2 'EVAL. Informat';
run;


Output
 Note about figure
                 FMTLIB Output for the NOZEROS. Format and the                 1
                                 EVAL. 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. 7.01    30JUN97:14:16:24)  |
  |----------------+----------------+----------------------------------------|
  |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: @EVAL    LENGTH:    1   NUMBER OF VALUES:    5        |
  |   MIN LENGTH:   1  MAX LENGTH:  40  DEFAULT LENGTH   1  FUZZ:        0   |
  |--------------------------------------------------------------------------|
  |START           |END             |INVALUE(VER. 7.01    30JUN97:14:16:25)  |
  |----------------+----------------+----------------------------------------|
  |C               |C               |                                       1|
  |E               |E               |                                       2|
  |N               |N               |                                       0|
  |O               |O               |                                       4|
  |S               |S               |                                       3|
  ----------------------------------------------------------------------------


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.