Standalone Stored procedure stage execution
Posted: Thu Mar 06, 2008 3:57 pm
Hi,
I have a need to execute a MS SQL 2005 stored procedure from a datastage PX job and pass 4 parameters to this stored procedure via job parameters.
I created a new PX job and added one "Stored Procedure" Stage to it and set it up as "Transform" type.
I was able to configure the procedure name, connection details and all the required settings. However when i try to set the parameters, it prompts that the column name should match an existing column.
I tried importing the procedure into the repository and loaded into the Stored Procedure stage, but it still needs the column name to be existing in the job.
To satisfy this, I added a Row Generator stage that would supply dummy values and it worked well. Then i converted the Row Generator to generate only one record and set the columns to take the values from the job parameters.
I saw another post viewtopic.php?t=117033 where a "No Param" stored procedure was discussed and there were suggestions to use a transformer or DRS.
Are there any do's and don'ts in these approaches?
If i can execute the procedure without any additional stages, that would be best, but it appears that for most cases, a dummy transformer would be required to get things moving.
Thanks,
I have a need to execute a MS SQL 2005 stored procedure from a datastage PX job and pass 4 parameters to this stored procedure via job parameters.
I created a new PX job and added one "Stored Procedure" Stage to it and set it up as "Transform" type.
I was able to configure the procedure name, connection details and all the required settings. However when i try to set the parameters, it prompts that the column name should match an existing column.
I tried importing the procedure into the repository and loaded into the Stored Procedure stage, but it still needs the column name to be existing in the job.
To satisfy this, I added a Row Generator stage that would supply dummy values and it worked well. Then i converted the Row Generator to generate only one record and set the columns to take the values from the job parameters.
I saw another post viewtopic.php?t=117033 where a "No Param" stored procedure was discussed and there were suggestions to use a transformer or DRS.
Are there any do's and don'ts in these approaches?
If i can execute the procedure without any additional stages, that would be best, but it appears that for most cases, a dummy transformer would be required to get things moving.
Thanks,