The following display
shows a simple job that sorts a table of customer data by country:
Sort Job
You can review the
initial, unsorted data for the Customer source table, as shown in
the following display:
Customer Source Table
You can add the Conditional
Start and Conditional End transformations to a SAS Data Integration
Studio job to create a conditional definition block.
Note that the Conditional
Start and Conditional End transformations do not yet enclose the Sort
transformation and the Customer table in the following display:
Conditional Transformations
You must reorder the
contents of the
Diagram tab to define the
conditional definition block.
Use the
Control
Flow tab reorder these contents, as shown in the following
display:
Control Flow Tab
Note that the tab shows
the transformations in the following order: Conditional Start, Sort,
and Conditional End.
The following display
shows the reordered flow on the
Diagram tab:
Reordered Conditional Transformations
Now that the job in
is enclosed in the conditional definition block, the condition can
be defined in the
Condition tab, as shown
in the following display:
Condition Tab
The condition input
in the
Condition tab in the is processed
by the %eval (
Condition) function
in the generated code of the transformation. You can click on the
function in the
Functions pane to see a description.