Base SAS Training - Day 2 (PROC Contents, Data Steps and options)

Опубликовано: 16 Январь 2012
на канале: Learn Analytics
28,126
22

Full SAS Training Playlist - https://goo.gl/p0dJqP

Proc Contents - other option
Position -- to list the variables in alphabetic order as well as in order of creation in the dataset.
all option -- to list out the contents of all the files / datasets in a library
nods option -- used only with all , to list out only the file/dataset names in a library
Data step:
Creating a copy of a dataset using data and set statement.
Keep and Drop options -- to modify a dataset by retaining only the required variables in it. Can be used in both Data and Set statements.
Rename and Label statements to change the name of the variable and provide a brief description to it.
Using Firstobs and obs option in Data step
Proc Print: Options
Firstobs and Obs -- to specify the number of observations (based on observation number) to be printed in the result / output window
Label -- Prints the label of the variable in place of the variable name in the output.
n -- specifies the number of observations in the result