September 2019
Beginner to intermediate
346 pages
7h 35m
English
The following code represents one of the simplest forms of a data step:
DATA WORK.Air;SET SASHELP.Air;RUN;
Using the SET statement in this data step, we have specified the dataset that we want to refer to. There are no conditional statements in the program that are selecting a proportion of records from the Air dataset in the SASHELP library. As a result, all the contents of the dataset in the set statement will get copied over to the dataset specified in the data statement. In the set statement, it is necessary to specify a dataset. However, if you specify _LAST_ in the SET statement, the dataset that was last created in the SAS session will be used instead. Finally, the Run command is specified to execute the program. The only ...
Read now
Unlock full access