Reg odbc stored procedure

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
dineshrk
Participant
Posts: 46
Joined: Thu Jun 26, 2008 9:14 pm

Reg odbc stored procedure

Post by dineshrk »

We are getting warning while accessing a stored procedure, which takes a single parameter from a sequential file and returns a result set of 3 columns. we need to know how to pass parameter value by taking from a file to the ODBC stage to trigger SP and capture the result set in a file.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Warning? What warning?
-craig

"You can never have too many knives" -- Logan Nine Fingers
dineshrk
Participant
Posts: 46
Joined: Thu Jun 26, 2008 9:14 pm

Reg odbc stored procedure

Post by dineshrk »

[quote="chulett"]Warning? What warning?[/quote

The warning is
"
CopyOfTEST_SP..Transformer_20.Ref_data: DSD.BCIPut call to SQLExecute failed.
SQL statement:{call IntlHeadCount.dbo.sp_user_scope_ifeed(?)}
SQLSTATE=24000, DBMS.CODE=0
[DataStage][SQL Client][ODBC][DataDirect][ODBC SQL Server Driver]Invalid cursor state

AG_USER_ID = "utester1124""

Pls let me know if any furher input is needed
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Are you certain you've got a valid / working stored procedure? Tested it outside of DataStage?
-craig

"You can never have too many knives" -- Logan Nine Fingers
dineshrk
Participant
Posts: 46
Joined: Thu Jun 26, 2008 9:14 pm

Post by dineshrk »

chulett wrote:Are you certain you've got a valid / working stored procedure? Tested it outside of DataStage? ...

It is a valid working one and it returns a result set in the Query Analyzer. :(
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

OK. Have you tried using the Stored Procedure stage rather than ODBC? Also, read the docs on the SP stage for the rules it needs to follow to work with DataStage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply