Hello! I have a data set that I need separated into 10 observations. The data has 3 lines for each observation. part of my assignment is to separate observations by the section which is column 5 on the first line. The second two lines are HW and quiz scores. I would like to have SAS read everything as one big table, because from there I am fairly comfortable dividing the data up after that. Ive tried many things, but this is the closest Ive got:
data hw7;
input coursename $1-4 section 5 ID 6-7 Name $9-16 #5 a 1-3 b 4-6 c 7-9 d 10-12 e 13-15 f #6 16-18 g 1-3 h 4-6 i 7-9 j 10-12 k 13-15 l 16-18;
*input coursename $1-4 section 5@;
datalines;
M100101 Armann
10 10 10 10 8 9
13 15 10
M100102 Ellery
8 10 7 6 10 1
7 12 15
M100103 Anna
7 5 10 4 10 10
12 9 11
M100104 Tomo
9 8 10 5 10 5
10 14 12
M100301 Glenn
9 6 11 13
2 4 6 5 9 10 10
M100302 Duc
14 12 10 12
9 10 10 8 10 10 10
M100303 Woo
14 15 12 9
8 7 9 10 5 9 10
M100304 Olson
10 10 12 11
5 10 7 9 8 10 10
M100305 Ma
12 15 14 10
10 10 10 10 9 10 9
M100306 Garcia
14 13 15 11
9 10 8 10 10 6 10
;
run;
proc print;
title 'SAD FACE :(';
run;
At least SAS knows I have 10 observations now, but I would like sas to print line 2 as a, b, c, d, e, f and line 3 as g, h, i, j , k, l on one observation line in the final output. Please help!