Online File

How to use this page


Rick Aster: Professional SAS Programming Shortcuts: Contents

Chapter 30
Program
$COUNTY informat and format (discrete binary encoding of Irish counties)


PROC FORMAT LIBRARY=LIBRARY;
INVALUE $COUNTY (UPCASE JUST)
    ' ' = '00'X
    'CARLOW' = '01'X    'CAVAN' = '02'X
    'CLARE' = '03'X    'CORK' = '04'X
    'DONEGAL' = '05'X    'GALWAY' = '06'X
    'KERRY' = '07'X    'KILKENNY' = '08'X
    'LAOIS' = '09'X    'LEITRIM' = '0A'X
    'LIMERICK' = '0B'X    'LONGFORD' = '0C'X
    'MAYO' = '0D'X    'OFFALY' = '0E'X
    'ROSCOMMON' = '0F'X    'SLIGO' = '10'X
    'TIPPERARY' = '11'X    'WATERFORD' = '12'X
    'WESTMEATH' = '13'X    'WEXFORD' = '14'X
    OTHER = 'FF'X
    ;
VALUE $COUNTY
    '00'X = ' ' 
    '01'X = 'Carlow'     '02'X = 'Cavan' 
    '03'X = 'Clare'     '04'X = 'Cork' 
    '05'X = 'Donegal'     '06'X = 'Galway' 
    '07'X = 'Kerry'     '08'X = 'Kilkenny' 
    '09'X = 'Laois'     '0A'X = 'Leitrim' 
    '0B'X = 'Limerick'     '0C'X = 'Longford' 
    '0D'X = 'Mayo'     '0E'X = 'Offaly' 
    '0F'X = 'Roscommon'     '10'X = 'Sligo' 
    '11'X = 'Tipperary'     '12'X = 'Waterford' 
    '13'X = 'Westmeath'     '14'X = 'Wexford' 
    OTHER = '[$HEX2.]'
    ;
RUN;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech | Dictionary

Download | Rastinate

Rick Aster

Professional SAS Programming Shortcuts

Contents/Online Files

Corrections

Catalog Page