Stored Procedure Stage error

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
kpsita
Participant
Posts: 99
Joined: Tue Jul 21, 2009 11:43 pm

Stored Procedure Stage error

Post by kpsita »

Hi,

I have a stored procedure in Sql Server and I wanted to execute this stored procedure using Datastage. This SP doesn't have any parameters.

First I tried to execute this SP using just a stored procedure stage and then I tried to execute it using a Row generator stage before executing the stored procedure stge. But in both these cases I am geting the following error. Can anyone help me please

Error occurred during initializeFromArgs().
Stored_Procedure_7: When processing argument -stagepropsWhen processing stage property list: {
DBVENDOR='MSSQL Server',
DATASRC='datasource',
USERID='user',
PASSWORD='password STDPROC='SP',
GENSTD='Yes',
TYPEPROC='Transform',
PROCSTMT='{ ? = CALL SP( ? ) }',
SPPARAM='ReturnValue-+-param-+-?-+-I',
TX_ISO_LEVEL='None',
TRANSMODE='ANSI',
CLIENTCHARSET='Default',
DBPROCTYPE='Stored procedure'
} is not a valid property list: Expected "," or "}", got: "SP"
KPSITA
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I don't believe that the Stored Procedure stage supports procedures without at least one parameter. Probably more appropriate to use an ODBC stage for that.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kpsita
Participant
Posts: 99
Joined: Tue Jul 21, 2009 11:43 pm

Post by kpsita »

Thank you
KPSITA
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

I'm going to post to this even though it shows "resolved"...


You can run a procedure without any parameters, you just have to set the STP stage to type "Source" and it will execute without parameters and send back a return code.
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
bgs_vb
Premium Member
Premium Member
Posts: 79
Joined: Mon Jan 02, 2006 5:51 am

Post by bgs_vb »

You can call the Stored Procedure in the after SQl of the target DRS Stage.
Post Reply