Perform
the following steps to create and populate the job:
-
Create
and register the input and output tables. The input and output tables
must contain exactly the same columns as the tables that are listed
in the control table for the loop processing in the iterative job
to work properly.
-
-
Select
and drag the SAS transformation that is used to process the data from
the appropriate folder in the Transformations tree. Then, drop it
in the empty job on the
Diagram tab in the
Job Editor window. The sample job uses an Extract transformation
to extract a subset of the data with a specified marital status from
the source tables that are run through the loop.
-
Select
and drag the source table from its folder. Then, drop it before the
SAS transformation on the
Diagram tab. You
set the input parameter on this table.
-
Drag the
cursor from the source table to the input port of the SAS transformation.
This action connects the source to the transformation.
-
Because
you must have a permanent target table to contain the output parameter
that is needed for the loop job to work, right-click the temporary
work table attached to the transformation and click
Replace in the pop-up menu. Then, use the
Table Selector window to select the target table for the job. The target table
must be registered in SAS Data Integration Studio. (For more information
about temporary work tables, see
Working with Default Temporary Output Tables.) You set the
output parameter on this table.
A sample
completed parameterized job is shown in the following example.
Completed Parameterized Job
The input
table for the sample job is named PARAMTABLE_IN. The output table
is named PARAMTABLE_OUT.