Online File

How to use this page


Rick Aster: Professional SAS Programming Secrets: Contents

Chapter 11
Program 11i
Number of days in the month and year


*
  Professional SAS Programming Secrets
  Program 11i
  Number of days in the month and year
*;

data _null_;
   date = '01feb2100'd;
   month_i = intnx('month', date, 0);
   next_month_i = intnx('month', date, 1);
   month_days = next_month_i - month_i;
   year_i = intnx('year', date, 0);
   next_year_i = intnx('year', date, 1);
   year_days = next_year_i - year_i;
   put (month_days year_days) (=);
run;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech | Dictionary

Download | Rastinate

Rick Aster

Professional SAS Programming Secrets

Contents/Online Files

Corrections