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