4. PROC SUMMARY
• Provides data summarization tools that
compute descriptive statistics for variables
across all observations or within groups of
observations.
• Similar to PROC MEANS
20. GOTO
• Directs program execution immediately to the
statement label that is specified and, if
followed by a RETURN statement, returns
execution to the beginning of the DATA step.
21. (Statement) Label
• Specifies a statement label that identifies the
GOTO destination. The destination must be
within the same DATA step. You must specify
the label argument.
23. • DATA info; • DATA info;
Input X @@; Input X @@;
If 1<=X<=5 then If X<1 or X>5 then do;
go to OK; X=3; count+1;
X=3; count+1; end;
OK:SUMX+X; SUMX+X;
Cards; Cards;
X1 X1’ SUMX
1 1 1
2 2 3
6 3 6
4 4 10
7 3 13
1 1 14