•generate PROC STANDARD output to the DOCUMENT destination
•view the table template that describes how to display the PROC STANDARD output
•create an ODS document
•open an ODS document
•list the BY-group entries in an ODS document
Program
options nodate nonumber;
ods document name=mydocument(write);
data score;
input Student Section Test1-Test3;
stest1=test1;
stest2=test2;
stest3=test3;
datalines;
238900545 1 94 91 87
254701167 1 95 96 97
238806445 2 91 86 94
999002527 2 80 76 78
263924860 1 92 40 85
459700886 2 75 76 80
416724915 2 66 69 72
999001230 1 82 84 80
242760674 1 75 76 70
990001252 2 51 66 91
;
run;
proc sort data=score;
by Section Student;
run;
proc standard mean=80 std=5 out=StndScore print;
by section student;
var stest1-stest3;
run;
ods document ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.