Parameter pass to Stored Procedure stage .

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Veni
Participant
Posts: 45
Joined: Fri Oct 21, 2005 2:51 am

Parameter pass to Stored Procedure stage .

Post by Veni »

How to pass parameter value dynamically to Stroed Procedure stage.
for example i have one stored procedure called test(tablename) here Tablename is dynamically assigned by the job based on the Tablename parameter value Test procedure will extract data from respective table.



ProceureName -' "EDW$LIBRARIAN.refresh_fiscal_month"

Procedure call syntax "BEGIN test(": TableName :"); END;"

when i gave like this i got illegal parameter. if i tried to give dummy variable like :1 this works fine.
BEGIN test(:1); END;"
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I don't use the stage, but have you tried it with the parameter name enclosed in the standard pound/hash signs? :?

Procedure call syntax "BEGIN test(#TableName#); END;"

As long as TableName is a job parameter, that is.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Veni
Participant
Posts: 45
Joined: Fri Oct 21, 2005 2:51 am

Post by Veni »

chulett wrote:I don't use the stage, but have you tried it with the parameter name enclosed in the standard pound/hash signs? :?

Procedure call syntax "BEGIN test(#TableName#); END;"

As long as TableName is a job parameter, that is.

when i used "BEGIN test(#TableName#); END;"

I got below error message.

Attempting to Cleanup after ABORT raised in stage CallStoredProcedureJob..Call_StoredProcedure
Post Reply