Overview Often, when you work with data sets, it's useful to create completely new variables or new variables that are based on the values of existing variables. These new variables can contain the results of SAS functions, conditionally-assigned values, or running totals of other variable values. |
You can create variables in a DATA step in the following ways:
When you create variables using assignment statements, you can take advantage of SAS functions and SAS expressions. |