Overview Often you need to work with only a subset of a SAS data set. You may need to select observations, variables, or both. |
In the DATA step, you have a number of tools for subsetting data. You can use
In PROC steps, WHERE statements are the most common tool for selecting observations that meet a specified condition. This task focuses on writing DATA steps using subsetting IF statements, the DROP= and KEEP= data set options, and the DROP and KEEP statements. |