Tom sets up a job that includes a Hierarchical Data stage
and two Sequential File stages. He then configures columns for the
Sequential File stages.
About this task
The following figure shows the job that Tom creates to
update InfoSphere® Information Governance Catalog terms
by using the REST API. The job includes a Hierarchical Data stage
named EditTerm and Sequential File stages named Get_Output and Put_Output.
The EditTerm stage is linked to the Get_Output stage by a link named
httpGET. The EditTerm stage is linked to the Put_Output stage by a
link named httpPUT.
Procedure
- Start the IBM® InfoSphere DataStage® and QualityStage® Designer client.
- In the Repository pane, right-click
the Jobs folder, and then click .
- Open the Real Time section of the
palette, and drag one Hierarchical Data stage to the canvas.
- Open the File section of the palette,
and drag two Sequential File stages to the canvas. Position the Sequential
File stages to the right of the Hierarchical Data stage.
- Create the job parameters:
- Select .
- On the Parameters tab, specify
the job parameters for this example, which are listed in the following
table, and then click OK.
Table 1. Job Parameters for the exampleParameter Name |
Prompt |
Type |
Directory |
Specify the directory where the input or output
file is created |
String |
BGServer |
Specify the IP address of the Information Server
Catalog server where the REST service is running |
String |
BGServerPort |
Specify the port number of the Information Server
Catalog server on which the REST service is running |
String |
- Create links from the Hierarchical Data stage to the Sequential
File stages.
- Rename the stages and links as shown in the following table.
Table 2. Names for job elementsElement |
Name |
Hierarchical Data stage |
EditTerm |
Sequential File stage |
Get_Output |
Sequential File stage |
Put_Output |
Link from the EditTerm stage to the Get_Output
stage |
httpGET |
Link from the EditTerm stage to the Put_Output
stage |
httpPUT |
- Configure the Get_Output stage:
- Double-click the Get_Output stage, and configure the
columns that are listed in the following table on the Columns page.
Table 3. Columns for the Get_Output stageColumn name |
SQL type |
success |
VarChar |
errorMessage |
VarChar |
faultHttpStatusCode |
VarChar |
reasonPhrase |
VarChar |
statusCode |
Integer |
- On the Properties page, configure the properties that
define the output file:
Table 4. Properties for the
output fileProperty |
Value |
|
The path where you want the output file to be
created followed by the file name, for example, #Directory#/FetchTerm_Author.txt. |
|
Overwrite |
First line is column name |
True |
- Click OK to close the Get_Output
stage.
- Configure the Put_Output stage:
- Double-click the Put_Output stage, and configure the
columns that are listed in the following table on the Columns page.
Table 5. Columns for the Put_Output stageColumn name |
SQL type |
success |
VarChar |
errorMessage |
VarChar |
faultHttpStatusCode |
VarChar |
faultHttpBody |
VarChar |
statusCode |
Integer |
reasonPhrase |
VarChar |
- On the Properties page, configure the properties that
define the output file.
Table 6. Properties for the
output fileProperty |
Value |
|
The path where you want the output file to be
created followed by the file name, for example, #Directory#/EditTerm_Author.txt. |
|
Overwrite |
First line is column name |
True |
- Click OK to close the Put_Output
stage.
- Click , and name the job rest_BG.