O'Reilly logo

Learning SAS by Example by Ron Cody

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Working with Dates

9.1

Introduction

142

9.2

How SAS Stores Dates

142

9.3

Reading Date Values from Raw Data

143

9.4

Computing the Number of Years between Two Dates

146

9.5

Demonstrating a Date Constant

147

9.6

Computing the Current Date

148

9.7

Extracting the Day of the Week, Day of the Month, Month, and Year from a SAS Date

149

9.8

Creating a SAS Date from Month, Day, and Year Values

150

9.9

Substituting the 15th of the Month when the Day Value Is Missing

151

9.10

Using Date Interval Functions

152

9.11

Problems

157

Introduction

Most data sets contain date information, such as a date of birth or a transaction date. SAS can read dates in almost any commonly used format. It can calculate intervals between dates and much, much more. Read on.

How SAS Stores Dates

SAS can read ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required