{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This 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;
Image of page 1

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

View Full Document Right 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.
Image of page 2
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern