a6 - NOTE: DATA statement used (Total process time): real...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
EXAMPLE A6 SAS Program data quizzes; input name $ quiz1-quiz5; array qz {5} quiz1-quiz5; drop quiz1-quiz5; do test= 1 to 5; if qz{test}=. then qz{test}= 0 ; score = qz{test}; output; end; datalines; Smith 8 7 9 . 3 Jones 4 5 10 8 4 ; run; proc print data=quizzes; run;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
SAS Log 18 options ls=80 ps=40 pageno=1 nodate; 19 data quizzes; 20 input name $ quiz1-quiz5; 21 array qz {5} quiz1-quiz5; 22 drop quiz1-quiz5; 23 do test= 1 to 5; 24 if qz{test}=. then qz{test}= 0 ; 25 score = qz{test}; 26 output; 27 end; 28 datalines; NOTE: The data set WORK.QUIZZES has 10 observations and 3 variables.
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.01 seconds 31 ; 32 run; 33 proc print data=quizzes; 34 run; NOTE: There were 10 observations read from the data set WORK.QUIZZES. NOTE: PROCEDURE PRINT used (Total process time): real time 0.00 seconds cpu time 0.00 seconds SAS Output The SAS System 1 Obs name test score 1 Smith 1 8 2 Smith 2 7 3 Smith 3 9 4 Smith 4 0 5 Smith 5 3 6 Jones 1 4 7 Jones 2 5 8 Jones 3 10 9 Jones 4 8 10 Jones 5 4...
View Full Document

Page1 / 3

a6 - NOTE: DATA statement used (Total process time): real...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online