Universal variable

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
babbu9
Premium Member
Premium Member
Posts: 75
Joined: Tue Jun 01, 2004 9:44 am

Universal variable

Post by babbu9 »

Hi
Is there a possibility to store a variable, lets say select count(*) from table value such that it is accessible from any job downstream in the sequence from where this variable is defined. If so how?

I am trying to store record count value from a oracle database and use that value later in the sequence.

Please inform.

Thanks.
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Re: Universal variable

Post by ogmios »

Not directly in DataStage, but since it's flexible you can find ways around it: store values in files, databases, hash files, ...

Ogmios
In theory there's no difference between theory and practice. In practice there is.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Easiest and most efficient is to "store" it in a column being propagated in the data stream being processed. This remains available as far downstream as you could wish, until you discard it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply