Tom sets up a job that includes one Hierarchical Data stage
and one Sequential File stage. He then configures columns for the
Sequential File stage.
About this task
The following figure shows the job that Tom creates. The
job includes a Hierarchical Data stage named Hierarchical_ DELETE
and a Sequential File stage named Sequential_File_DELETE. The Hierarchical_DELETE
stage is linked to the Sequential_File_DELETE stage by a link named
httpDELETE.
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 one Sequential File stage to the canvas. Position the Sequential
File stage to the right of the Hierarchical Data stage.
- Create the job parameters:
- Select .
- On the Parameters tab, specify
the job parameters for the HTTP DELETE example, which are listed in
the following table, and then click OK.
Table 1. Job Parameters for the HTTP DELETE exampleParameter Name |
Prompt |
Type |
Directory |
Specify the directory where the input or output
file is created |
String |
restServer |
Specify the IP address of the REST server where
the REST service is running |
String |
restServerPort |
Specify the port number of the REST server on
which the REST service is running |
String |
- Create a link from the Hierarchical Data stage to the Sequential
File stage.
- Rename the stages and links as shown in the following table.
Table 2. Names for job elementsElement |
Name |
Hierarchical Data stage |
Hierarchical_DELETE |
Sequential File stage |
Sequential_File_DELETE |
Link from the Hierarchical_DELETE stage to the
Sequential_File_DELETE stage |
httpDELETE |
- Configure the Sequential_File_DELETE stage:
- Double-click the Sequential_File_DELETE stage, and configure
the columns that are listed in the following table on the Columns
page.
Table 3. Columns for the Sequential_File_DELETE
stageColumn name |
SQL type |
httpVersion |
VarChar |
statusCode |
VarChar |
reasonPhrase |
VarChar |
- 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 #Directory#/output_delete.txt. |
|
Overwrite |
- Click OK to close the Sequential_File_DELETE
stage.
- Click , and name the job rest_DELETE.