AS400 Stord procedure call

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

AS400 Stord procedure call

Post by admin »

Group. I am trying to call a AS400 Stored procedure with two input and 3 output parameters.

_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

AS400 Stord procedure call

Post by admin »

Group.. I am trying to call a AS400 Stored procedure which has two input and 3 output parameters. I understand Datastage doesn't consider output parameters and they are ignored. I am calling the procedure with two input parameters using ODBC stage/stored proc. When I executed the procdure encountered following error.
---------------------------------------------------------------------------------------------------------------------------
statement was:{call WEPGMPD.TS$GETML('SALKS', 'WPRCO')}
SQLSTATE=HY000, DBMS.CODE=-440
[DataStage][SQL Client][ODBC][DataDirect][ODBC DB2 Wire Protocol driver][DB2]No function or procedure was found with the specified name (WEPGMPD.TS$GETML) and compatible arguments.
----------------------------------------------------------------------------------------------------------------------------

The procedure is failing because it expects 3 output parameters. Do I require to pass any output parameters. We used to pass '?' as output parameter in DB2 on Unix, and is there any workaround in AS400..

Following are the input and output parameters.

INPUT - FromCtySt, ToCtySt
OUTPUT - RtnMiles, RtnMsgId, RtnMsgDes

Thanks..
Siva





_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users
<b>PLEASE READ</b>
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
Locked