Example 1: Viewing the output of the job

After John runs the job, he opens the text files and looks at the output.

Procedure

  1. From the Assembly Editor, click OK to return to the Hierarchical Data stage editor, and then click OK to close the Hierarchical Data stage editor.
  2. To compile the job, click File > Compile from the IBM® InfoSphere® DataStage® and QualityStage® Designer client.
  3. Click File > Run to run the job.
  4. In the parameter window, specify values for the Directory, restServer, and restServerPort parameters.

    This example uses the input file, inputHTTP.json that contains the request body:

    This figure shows the content of the input file that contains the request body.
  5. After the job runs, open the output file, output_http.txt, to view the result of the REST web service invocation.

    The output_http.txt file contains data that indicates that the REST web service was invoked successfully.

    This figure shows data that indicates that the REST web service was invoked successfully.

Results

By using the Hierarchical Data stage, John posted the required details on the web site.