Assignment 12

SAS Macros

Due November 20.

Use a title to label your output. The title should identify you by your name and social security number and the assignment number.

The ASCII files s362121.dat , s362122.dat , s362123.dat , and s362124.dat contain data on five variables. The values are separted by blanks, so the data can be input list-directed. The observations in the files match up one to one; that is, the first observation on each of the four files relates to the same observational unit, likewise, the second, and so on. There are some missing values. Build a dataset with 8 variables: mean1, miss1, mean2, miss2, mean3, miss3, mean4, miss4 where mean1 is the mean of the non-missing variables on the first data set, miss1 is the number of variables with missing values, and so on. Use a SAS macro to make the program simpler.