Get Job Name executed from sequence
Posted: Thu Feb 28, 2008 8:28 am
Hi
We have a sequence that execute a job. We want to use the job name that is being executed to make a lookup to retrieve parameter values from a file.
The question is: can we get the job name that is being executed from a sequence?
We have tried to name the Job Activity stage the same as the job being executed and used DSGetStageInfo(DSJ.ME, DSJ.ME, DSJ.STAGENAME) but it returns 'JobControl' and not the Job Activity name. We have also tried DSGetJobInfo(DSJ.ME, DSJ.JOBNAME) but it returns the name of the sequence name.
We dont want to hardcode the job name to retrieve the parameter values, it has to be done dynamically.
Hope that anybody has som good answers.
We have a sequence that execute a job. We want to use the job name that is being executed to make a lookup to retrieve parameter values from a file.
The question is: can we get the job name that is being executed from a sequence?
We have tried to name the Job Activity stage the same as the job being executed and used DSGetStageInfo(DSJ.ME, DSJ.ME, DSJ.STAGENAME) but it returns 'JobControl' and not the Job Activity name. We have also tried DSGetJobInfo(DSJ.ME, DSJ.JOBNAME) but it returns the name of the sequence name.
We dont want to hardcode the job name to retrieve the parameter values, it has to be done dynamically.
Hope that anybody has som good answers.