Page 1 of 1

Passing run time variables to ODBC stage

Posted: Thu Feb 11, 2010 6:13 am
by yaminids
Friends,

Is there a way to pass variables during the run time to the ODBC stage?

My current project requires me
1) To get a value from the log table and pass this to the next stage (ODBC.)
2) Use the above value in the WHERE clause of the 2nd ODBC stage to retrieve data from the source

1st ODBC(get the value from log table) ==>2nd ODBC (use the value and retrieve data from source)

Thanks in advance
Yamini

Posted: Thu Feb 11, 2010 7:14 am
by chulett
Not directly in a single job, no.

Typically, that '1st ODBC' work would be in one job and the results would be landed somewhere, say in USERSTATUS. Then a Sequence job would read the value from user status and assign it to a Job Parameter in a second job where the '2nd ODBC' would use it in its where clause.

In one server job, the 2nd ODBC stage could insert the data from the 1st stage into a temp/work table and then the output link on the 2nd ODBC stage could join to that work table, which in essence serves as your 'where clause' constraint.

A couple of ways off the top of my head.