How to assign parameter a value
Moderators: chulett, rschirm, roy
How to assign parameter a value
At my job design, I have to assign parameter a values. This value will be passed to the down stream jobs.
What is the best way to do so?
Thanks in advance.
What is the best way to do so?
Thanks in advance.
Bill
1) Use a Server job to fetch the parameter value.
2) Write the parameter value to the job's USERSTATUS area
3) Assign all downstream job parameter values to $UserStatus from the Server job.
You'll need to build a little routine to call the DSSetUserStatus function but the code for that can be found here. Another option is to write the value to a flat file then use a routine or command to 'read' it and then assign the output from that to any downstream job parameters.
What is your current methodology?
2) Write the parameter value to the job's USERSTATUS area
3) Assign all downstream job parameter values to $UserStatus from the Server job.
You'll need to build a little routine to call the DSSetUserStatus function but the code for that can be found here. Another option is to write the value to a flat file then use a routine or command to 'read' it and then assign the output from that to any downstream job parameters.
What is your current methodology?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
A modification of the file method which would also work:
You can write the value to a parameterset valuefile in the form of PARAMETER=VALUE, then pass that parameterset, using the valuefile name, to a child sequence which calls your jobs.
Regards,
You can write the value to a parameterset valuefile in the form of PARAMETER=VALUE, then pass that parameterset, using the valuefile name, to a child sequence which calls your jobs.
Regards,
- james wiles
All generalizations are false, including this one - Mark Twain.
All generalizations are false, including this one - Mark Twain.
-
- Participant
- Posts: 298
- Joined: Tue Aug 26, 2008 12:17 pm
Hi everybody.chulett wrote:1) Use a Server job to fetch the parameter value.
2) Write the parameter value to the job's USERSTATUS area
3) Assign all downstream job parameter values to $UserStatus from the Server job.
I have the same issue.
How do I use a Server job to fetch the parameter value?
Thank guys!
Best regards,
Joyce A. Recacho
São Paulo/SP
Brazil
São Paulo/SP
Brazil