Carrying value from B/Job routine to Job transform stage
Posted: Tue Feb 26, 2008 1:00 pm
Hello all, I need your help again
This time with a Before-Job Subroutine.
I customized some code found in this forum to access an Oracle table from my routine, this is an excerpt of the code:
This is working nice, and what I need now is to carry on the value assigned to res1 to a job tranformer stage. Is it possible? How? Are there different methods to acomplish this?
I intensely searched the forum for some solution before I posted this but only found workarounds for similar situations involving job sequences, which is not my case.
I tried with environment variables without success.
P.D. Want to thank you for the sample code regarding SQLExecDirect and ODBC usage, good job!
This time with a Before-Job Subroutine.
I customized some code found in this forum to access an Oracle table from my routine, this is an excerpt of the code:
Code: Select all
Stmt= "select max(":field:") from ":table: " ;"
Call DSLogInfo("Query SQL: " : Stmt, "ExecSQLProc")
ErrCode1 = SQLBindCol(hStmt, 1, SQL.B.DEFAULT, res1)
status = SQLExecDirect(hStmt, Stmt)
I intensely searched the forum for some solution before I posted this but only found workarounds for similar situations involving job sequences, which is not my case.
I tried with environment variables without success.
P.D. Want to thank you for the sample code regarding SQLExecDirect and ODBC usage, good job!