Pass unique process ID to downstram process

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Aggie99
Participant
Posts: 54
Joined: Thu Sep 04, 2008 6:54 pm

Pass unique process ID to downstram process

Post by Aggie99 »

hi gurus,

I am tying to query a database table to get an unique process key to pass to downstream DataStage Parallel processes.

How can I do this? Can you give me some suggestions.

thanks in advance.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

There are many items you can send as unique for a process.

But what is your intention about it? i.e. how do you plan to use it later?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

OK, so what do you need help with - the query part or the pass downstream part? Specifically, what did you try and what problem are you having? Right now you're being way too... generic.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Aggie99
Participant
Posts: 54
Joined: Thu Sep 04, 2008 6:54 pm

Post by Aggie99 »

yes, it is a bit generic.

We have a database table that stores unique batch IDs and other attributes on Oracle DB1.

Every batch run will kick off a list of child processes that populate tables in Oracle DB2. All the child processes should capture the same Batch ID number and store them along with other fields.

I have a set of Parallel jobs, and will use Sequencers to chain them up.

I try to query DB1 for Batch ID once, then pass it to downstream child processes. But need suggestions.
Aggie99
Participant
Posts: 54
Joined: Thu Sep 04, 2008 6:54 pm

Post by Aggie99 »

I need suggestion on the "Passing the id down". Not SQL.

thanks,
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

One job (a server job is best for processing one row) to query the table and park the value into the job's user status area. In the calling sequence the user status area can be interrogated as an activity variable in any downstream activity.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Right, search here for USERSTATUS and DSSetUserStatus for examples.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply