Getting a before-job routine value in a job parameter

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Getting a before-job routine value in a job parameter

Post by abc123 »

I would like to get a value from a Unix text file by using a before-job subroutine as:

cat FileName1

I would like this value to be the initial value of a stage variable in the job. I know that I can have a sequence job and call this in a exec command stage and then call the job in a job activity stage. However, I would like to do this in one job. How do I do it?
Madhavan VM
Participant
Posts: 33
Joined: Sat Jul 02, 2005 2:27 am
Location: Bangalore

Post by Madhavan VM »

Could you explain what is the scenario where you need such a work around?
warm regards,
Ajith GK
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

This approach will, unfortunately, not work due to the way DS jobs are executed at runtime.

What you can do is compute the value of the stage variable in a sequence, then pass it into the job as a parameter and use the parameter value as the initial value for the stage variable.
Post Reply