Online File

How to use this page


Rick Aster: Professional SAS Programming Shortcuts: Contents

Chapter 45
Program
Completing a range (alternate)


PROC SORT DATA=WORK.INCOMPLETE;
   BY X;
RUN;
DATA WORK.ALLKEY (KEEP=X);
   DO POINT = 1, NOBS;
      SET WORK.INCOMPLETE POINT=POINT NOBS=NOBS;
      IF POINT = 1 THEN MIN = X;
      IF POINT = NOBS THEN MAX = X;
      END;
   DO X = CEIL(MIN) TO MAX;
      OUTPUT;
      END;
   STOP;
RUN;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech | Dictionary

Download | Rastinate

Rick Aster

Professional SAS Programming Shortcuts

Contents/Online Files

Corrections

Catalog Page