Use an assignment statement in any DATA step in order to modify existing values or create new variables.
Syntax, assignment statement:
Tip:The assignment statement is one of the few SAS statements that do not begin with a keyword.
For example, here is an assignment statement that assigns the character value
Toby Witherspoonto the variable Name:
You use SAS expressions in assignment statements and many other SAS programming statements to do the following:
create new variables
conditionally process ...