Procedure Status in Stored Procedure stage

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
Praful
Participant
Posts: 14
Joined: Fri Apr 12, 2013 10:29 pm
Location: United States

Procedure Status in Stored Procedure stage

Post by Praful »

I am calling the procedure through stored procedure stage and pasing procedure status to sequential file.

General-->Database Vendor=Oracle
Syntax-->procedure type = source.
no parameters and no error code

I am intentially failing the procedure to see the procedure status in the file, but status is not going to the sequential file. If procedure ran good then status is populating good.

Job:
Stored Procedure --> Sequential file stage

Can you please let me know how to populate the status if procedure fails.
Regards,
Praful
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

On the Output -> General tab of the Stored Procedure stage do you have "Procedure Status to Link" box checked?
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
Praful
Participant
Posts: 14
Joined: Fri Apr 12, 2013 10:29 pm
Location: United States

Post by Praful »

Yes that box is checked, but still not getting the status if procedure is failing.
If procedure ran good then status is coming in the file as below,

"0",""
Regards,
Praful
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Hi,

In case procedure is failing what return code you are getting in file?
Post Reply