Procedures Options and Statements

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Procedures and Options

Procedure PROC CONTENTS Option DATA = NODS NOPRINT ORDER= OUT = VARNUM Description Specify the input data set Suppress the printing of individual files Suppress the printing of the output Prints a list of variables in various order Specify the name of the output data set Print a list of variables by their position in the dataset (by default, SAS prints alphabetically) Begins the next one-way table on the current page Names the input data set Suppresses the printing of all display out Specifies the order for reporting variable values Displays one table per page Provides separate analyses for each BY group Requests an output data set Specifies tables and request analysis

PROC FREQ

COMPRESS DATA = NOPRINT ORDER= PAGE Statements BY OUTPUT TABLES **has its own set of options!

Procedure PROC MEANS

Option PRINT | NOPRINT ORDER Statements BY CLASS FREQ

Description Self-explanatory Specifies the order for reporting variable values Calculate separate statistics for each BY group Identify variables whose values define subgroups for the analysis Indentify a variable whose value represent the frequency of each observation Include additional identification variables in the output data set Create an output data set that contains specified statistics and identification variables Identify specific combinations of class variables to use to subdivide the data Indentify the analysis variables and their order in the results Same as Proc Means!!!

ID OUTPUT

TYPES

VAR PROC SUMMARY Same as Proc Means!!!!

Procedure PROC REPORT

Option DATA = OUT = STYLE = HEADLINE HEADSKIP Statements BY COLUMN

Description Specify the input set Specify the output set Specify one or more style elements for the ODS Underline all column headings and the spaces between them Write a blank line beneath all column heading Create a separate report Describe the arrangement of all columns and of headings that span more than one column Describe how to use and display a report item Treat observations as if they appear multiple times in the input data set Suppress the column in the output that indentifies each observation by number Specify a column heading for the column that indentifies each observation by number Statement Produces a separate section of the report for each BY group Identify observations that you list by the formatted values of the variables that you list instead of by observations numbers Total values of numeric variables Select variables that appear in the report and determine their order

DEFINE FREQ

PROC PRINT

NOOBS

OBS =

BY ID

SUM VAR

You might also like