Hint for Assignment 1
Please note that we are not allowed to discuss your assignment answer directly or give comments
on your answer. :< Therefore, we prepared the following hints for you to do the assignment
easier!
Q1:
Use the list input, followed by a dataline statement. The answer looks like below.
Data Q1;
Input ID names $ haircolor……
Datalines;
…… (this is where you copy the lines of data)
Q2:
The data format to use is comma8. and mmddyy8.
The first few words in the solution code looks like below.
Input @1 ID 4, ……
Format expense comma8. ……
Datalines;
…... (this is where you copy the lines of data)
Q3:
Use the infile statement to read in the studinfo.txt
Use proc means to print out the mean.
The first few word in the solution code looks like below.
Infile ‘…..’;
Input studID 1-4 names $ ……..
……………