Reading Repeating Blocks of Data

Overview

Each record in the file Tempdata contains three blocks of data. Each block contains a date followed by the day's high temperature in a small city located in the southern United States.
Raw Data File Tempdata
Raw Data File Tempdata showing the date and high temperature.
You could write a DATA step that reads each record and creates three different Date and Temp variables.
Three Date and Temp Variables
SAS data set showing three Date and Temp variables.
Alternatively, you could create a separate observation for each block of data in a record. This data set is better structured for analysis and reporting with ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third 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.