Hi all,
I have two jobs. the first one gets the max val for a column from a table and stored that in a file.
odbc---->> seq file
The second generates surrogate keys for the incoming records.
seq file---- > surrogate key gen----- > output
what i want to do is to pass the value which is stored in the file as the result of the first job run to the parameter in the second job.
in short.. i want the result of the first job to be the 'start value' of the surrogate key generator stage in the second job.
How can i do this ?
Output of a file as a parameter
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Easiest would be to read the file and pass its value into the second job as a job parameter. You would do this with an Execute Command activity in a job sequence.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
After the first job writes the value to the sequential file, use UserVariable Activity to read the value from the file. And when writing the variable to the file write it as VarName=Value, VarName being the variable name used in job 2. Use get GetParameterValueFromFile() in UserVariable Activity to read the value.
Never mind. I didn't notice that it was a PX post. I wanted to know if it was available in Server Ed.gateleys wrote:Is there such a function available? Well, of course, if you have not custom coded it!!!!Maveric wrote:Use get GetParameterValueFromFile() in UserVariable Activity to read the value.
gateleys
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: