Result Columns in a Stored Procedure
Posted: Fri May 07, 2004 4:07 am
How many number of result columns are to be mentioned in an odbc stage while calling a stored procedure ? can anybody throw light on this.
BackGround:
I am trying to call a simple stored procedure from an odbc stage.
My job looks like this:
odbcstage --> Tranformer ---> sequential file.
I am passing an input parameter in odbc stage as my procedure requires.
I am putting one dummy column char(4) in the odbc stage to receive result set of procedure. Also I am passing a dummy value to output sequential file. Basically my aim here is to run stored procedure from datastage.
With above set up - I am getting following error while running the job:
OdbcTest..Transformer_5: |SQL statement has incorrect number of result columns.|
Can anybody throw light upon this ....!!
Thanks
Mukund Shastri
BackGround:
I am trying to call a simple stored procedure from an odbc stage.
My job looks like this:
odbcstage --> Tranformer ---> sequential file.
I am passing an input parameter in odbc stage as my procedure requires.
I am putting one dummy column char(4) in the odbc stage to receive result set of procedure. Also I am passing a dummy value to output sequential file. Basically my aim here is to run stored procedure from datastage.
With above set up - I am getting following error while running the job:
OdbcTest..Transformer_5: |SQL statement has incorrect number of result columns.|
Can anybody throw light upon this ....!!
Thanks
Mukund Shastri