A Simple Program to Read Raw Data and Produce a Report
Enhancing the Program
More on Comment Statements
How SAS Works (a Look Inside the “Black Box”)
Let’s start out with a simple program to read data from a text file and produce some basic summaries. Then we’ll go on to enhance the program.
The task: you have data values in a text file. These values represent Gender (M or F), Age, Height, and Weight. Each data value is separated from the next by one or more blanks. You want to produce two reports: one showing the frequencies for Gender (how many Ms and Fs); the other showing the average age, height, and weight for all the ...