Online File

How to use this page


Rick Aster: Professional SAS Programming Shortcuts: Contents

Chapter 15
Program
Value formats


PROC FORMAT;
VALUE LVR
   ._-.Z, 0 = 'False'
   LOW-<0, 0<-HIGH = 'True'
   ;

VALUE $CFN
   'E' = 'Eastern Conference'
   'W' = 'Western Conference'
   ;

VALUE XRANGE
   0-71 = 'Low'
   72-85 = 'Medium'
   86-100 = 'High'
   ;

VALUE XXX
   LOW--1E4 = '-XXXXX'
   -1E4<--1000 = ' -XXXX'
   -1000<--100 = '  -XXX'
   -100<--10 = '   -XX'
   -10<-<0 = '    -X'
   0-<10 = '     X'
   10-<100 = '    XX'
   100-<1000 = '   XXX'
   1000-<1E4 = '  XXXX'
   1E4-<1E5 = ' XXXXX'
   1E5-HIGH = 'XXXXXX'
   ;

vALUE YN (MIN=1) 1 = 'Yes' 0 = 'No' OTHER = ' ';

VALUE ORD 1 = 'first' 2 = ’second' 3 = 'third' 4 = 'fourth';

VALUE ILLIONS
    1000 -< 1E6 = 'thousands'
    1E6 -< 1E9 = 'millions'
    1E9 - HIGH = 'billions';

VALUE BE -1 - 1 = 'is' OTHER = 'are';

VALUE STARS . = '************' OTHER = (|BEST12.|);
RUN;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech | Dictionary

Download | Rastinate

Rick Aster

Professional SAS Programming Shortcuts

Contents/Online Files

Corrections

Catalog Page