Pass variables between jobs

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
shyam_etl
Premium Member
Premium Member
Posts: 8
Joined: Mon Aug 22, 2005 3:34 am

Pass variables between jobs

Post by shyam_etl »

Hi all,


I have a scenario, where I have a table with one of those columns, which gives me the 'SQL ( select stagement which is expected to return four columns ) stament'.

Is there a way I can assign this string ( SQL statement ) value to some variable and then use the same in an ODBC stage ( In the User Defined Query).

Is there any approach that would let me pick the String value and use it in an ODBC SQL tab?

Cheers,
Shyam
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

The problem is the metadata. I do this all the time. Part of EtlStats has jobs like this. You have to use a parameter. When I reseed the SDKsequences then I use:

select max(#ColName#) from #TableName#

The SQL in one job is:

#SqlStmt#
Mamu Kim
Post Reply