How to pass Job Name in one job Activity to another?

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
DataStageCnu
Participant
Posts: 37
Joined: Sun Aug 01, 2004 1:18 am

How to pass Job Name in one job Activity to another?

Post by DataStageCnu »

Hi All,

I havn't used routines earlier, Could you plz assist me how to include some value in Job status in a job activity and how to retrieve in another job activity.
ray.wurlod wrote:
Use a job sequence to run the jobs.

In the job that generates the value, have it also place the value in that job's user status area.

In the next job, use Job2.UserStatus$ to retrieve the previous job's user status area value when loading the parameter value.
I also want to send job name to the next job activity. How can i do?

Adv thanks,
BB
changming
Participant
Posts: 68
Joined: Wed Oct 13, 2004 3:35 am

Re: How to pass Job Name in one job Activity to another?

Post by changming »

DataStageCnu wrote:Hi All,

I havn't used routines earlier, Could you plz assist me how to include some value in Job status in a job activity and how to retrieve in another job activity.
ray.wurlod wrote:
Use a job sequence to run the jobs.

In the job that generates the value, have it also place the value in that job's user status area.

In the next job, use Job2.UserStatus$ to retrieve the previous job's user status area value when loading the parameter value.
I also want to send job name to the next job activity. How can i do?

Adv thanks,
BB
can you do like this:
in first job, create and write a the value in a temp file.
in job two, read the jobfile to get the value then delete.
that is what i guess from your question. maybe things are more complex than i thought.
Post Reply