Skip to content

Commit 28f487c

Browse files
committed
Added example for UNIVARIATE Procedure
Signed-off-by: niramu <[email protected]>
1 parent ba048a8 commit 28f487c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/************************************************************************************************
2+
PRINT EXTREME OBSERVATIONS
3+
This program prints a specified amount of observations with the highest and lowest values
4+
in a specified variable. It labels these observations with an identifier variable.
5+
Keywords: PROC UNIVARIATE
6+
SAS Versions: SAS 9, SAS Viya
7+
Documentation: https://documentation.sas.com/doc/en/pgmsascdc/v_066/procstat/procstat_univariate_toc.htm
8+
1. Specify the output table ODS should display from the following PROC UNIVARIATE step.
9+
2. PROC UNIVARIATE prints the N (here: 3) observations from the specified input
10+
(here: SASHELP.CLASS) table
11+
3. Specify the variable based on which the highest and lowest observations are selected
12+
(here: Height).
13+
4. A specified (here: Name) variable is used to identify these observations.
14+
************************************************************************************************/
15+
16+
ods select ExtremeObs; /*1*/
17+
proc univariate data=sashelp.class nextrobs=3; /*2*/
18+
var Height; /*3*/
19+
id Name; /*4*/
20+
run;

0 commit comments

Comments
 (0)