Online File

How to use this page


Rick Aster: Professional SAS Programming Logic: Contents

Chapter 24
Program
Control dataset


DATA WORK.MON;
   RETAIN TYPE 'I' FMTNAME 'MNAME' HLO 'UJ';
   * LABEL is month number. ;
   DO LABEL = 1 TO 12;
      * START is left-aligned, uppercase month name. ;
      START = LEFT(UPCASE(PUT(MDY(LABEL, 1, 0), MONNAME9.)));
      OUTPUT;
      END;
RUN;
PROC FORMAT CNTLIN=WORK.MON LIBRARY=LIBRARY;
RUN;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech

Download | Rastinate

Rick Aster

Professional SAS Programming Logic

Contents/Online Files

Corrections

Catalog Page