Hierarchical Stage - load file to API with REST

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
Premium Member
Premium Member
Posts: 508
Joined: Tue Jun 15, 2004 5:00 am
Location: London

Hierarchical Stage - load file to API with REST

Post by ShaneMuir »

Hi All

Does anybody know how to view the actual call that the Hierarchical stage is passing to an API when performing a HTTP POST command with the REST Step?

I am trying to pass a file to an API. I am able to successfully call the API passing the file from the command line using cURL or via other apps such as PostMan, and via other data tools (Talend). However when I have tried to call it in DataStage it never seems to work. From the API url logs I can see that something is not being passed correctly, but those logs giving a very unhelpful message.

I have executed the jobs in TRACE mode, but I cannot see much in those files other than the return code of 500.

I would like to see (if possible) that code that is being passed to the API to see if anything is missing?
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Re: Hierarchical Stage - load file to API with REST

Post by eostic »

It's been awhile, but one of the trace modes provides extremely deep detail. As I recall, the message in the log tells you where to find a very extensive and deeper log that has the full payload. ...but I don't have access anymore to recall the exact trace value needed.

Ernie Ostic

<a href="https://dsrealtime.wordpress.com/2015/07/29/open-igc-is-here/">Open IGC is Here!</a>
Post Reply