In the Manage Columns
transformation, you can add new columns and specify DS2 expressions
for those columns. When you run your job, the DS2 expression is evaluated
for each row and the result is added to the new column.
When you add a new column,
you can enter or paste a DS2 expression directly into the
DS2
Expression column (click

), or you can add your DS2 expression in the Advanced
Editor (click

.) In either case, your expression uses DS2 expression
syntax (and not SAS expression syntax.) For information about DS2
expressions, refer to the
SAS 9.4 DS2 Language Reference.
Follow these steps to
learn more about the Advanced Editor:
-
In the Manage Columns
transformation, click

to add a new column and open the Advanced Editor.
Note that you can also select an existing column and click

to replace the data in that column with the results
of a DS2 expression.
-
Enter a name for the
new column, a column data type, and the length of the column in bytes
(if applicable.) The
Column type is the
data type of the result of your DS2 expression.
-
Define your DS2 expression
using the columns and functions in the
Resources list.
Tip
When you select a function,
help is displayed for that function at the bottom of the
Resources list.
-
When your DS2 expression
is complete, click
Save to return to the
Manage
Columns page. If you defined a new column for your DS2
expression, the new column appears at the bottom of the
Selected
columns list.