Chapter 1: Introduction to Dates and Times in SAS

1.1 How Does It Work? (January 1, 1960, and Midnight as Zero)

1.2 Internal Representation

1.3 External Representation (Basic FORMAT Concepts)

1.4 Date and Time as Numeric Constants in SAS

1.5 Length and Numeric Requirements for Date, Time, and Datetime

1.6 General SAS Options for Dates

In the years that I've been working with SAS and teaching students how to use it, I find that two things consistently confuse those who are new to SAS. First is the default way that the DATA step works. Its implied DO-until-end-of-data generates many "How do I tell it how much data to read and when to stop?" questions. The second most confusing concept in SAS is that of how dates (and times) work within the software. ...

Get The Essential Guide to SAS Dates and Times, Second Edition, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.