Using the Hierarchical Stage for a series of REST calls

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Janmi
Participant
Posts: 1
Joined: Sun Jan 26, 2020 4:51 am
Location: Germany

Using the Hierarchical Stage for a series of REST calls

Post by Janmi »

Hi community,

I want to make a series of REST calls (GET) and my current setup is:

file stage -> Hierarchical Stage -> file stage

the input has 3 records which are user IDs. The Rest Call and parsing works without an error in the hierarchical stage and the output is as expected - except it is just 1 output record. The stage seems to make only a single call instead of three.

What is the solution to successfully make a REST call for all 3 records (or more) in one single stage?
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Are you trying to make a single call, three times? (once for each incoming row)...or make three different kinds of calls within the Stage? It might be in the way you are defining the "input" into the Assembly. It should be invoking the call for "each" row that comes through.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply