Additional Features

The DATA step provides a large number of other programming features for manipulating data when you combine data sets. For example, you can
  • use IF-THEN/ELSE logic to control processing based on one or more conditions
  • specify additional data set options
  • perform calculations
  • create new variables
  • process variables in arrays
  • use SAS functions
  • use special variables such as FIRST. and LAST. to control processing.
You can also combine SAS data sets in other ways:
  • You can perform one-to-one merging, which creates a data set that contains all of the variables and observations from each contributing data set. Observations are combined based on their relative position in each data set.
    One-to-one ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.