Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Check parameter value using sql passthru
Go
New
Search
Notify
Tools
Reply
  
Check parameter value using sql passthru
 Login/Join
 
Member
posted
I'm calling a PL/sql procedure using sql passthru.
This procedure returns a return code. I want to check the value of the return code and fail the DM procedure in a process flow by setting it's return code.

ENGINE SQLORA SET DEFAULT_CONNECTION dvdss01
SQL SQLORA
EX DWSTAGE.truncate_table '&table_name', ?/12345;
END
 
Posts: 1 | Registered: October 08, 2008Reply With QuoteReport This Post
Member
posted Hide Post
Hi,

Did you try testing &RETCODE after calling the stored procedure? For example:

ENGINE SQLORA SET DEFAULT_CONNECTION dvdss01
SQL SQLORA
EX DWSTAGE.truncate_table '&table_name', ?/12345;
END
-IF &RETCODE NE 0 GOTO BADRUN;
-EXIT
-BADRUN
-TYPE put message text here
-* put what you want to have happen here
-EXIT

With this, if the return code is 0, it will exit. If it is not 0, it will fall through to the error handling.

Hope that helps!
...


WF Reporting Server 71x, 76x
 
Posts: 15 | Registered: September 10, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Check parameter value using sql passthru

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.