Passing parameters in Job Sequencer?

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
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

There are a few ways to use parameters within a sequence job.
- Firstly you can set up parameters in the sequence job properties screen, these parameters can then be passed to any stages within that sequence. I don't know of any way to change the value of these parameters while the job is running.
- You can use a routine stage to set the value of variables that can then be used by other stages in the sequence. A routine has a $ReturnValue that is set by the routine and can be passed to any other stage as a parameter. A typical use is to write a routine that returns the current date and then pass this date to other routines and jobs. There must a set of links between the routine that sets the variable and the stage that uses the variable.
- You can write out parameters to a text or hash file from a job stage and read these values in through a routine stage as return values. These values can then be passed to other stages as parameters.
Post Reply