I haven't figured out how to use a job parameter inside the UtilityRunJob utility. Given the following scenario.
Current jobname: JobParameters
Current job parameter name: JobToRun
Inside of a transformer stage, I have tried the following derivations:
UtilityRunJob('#JobToRun#','Project=':Link1.project,0,0)
UtilityRunJob("#JobToRun#",'Project=':Link1.project,0,0)
UtilityRunJob('JobToRun','Project=':Link1.project,0,0)
UtilityRunJob("JobToRun",'Project=':Link1.project,0,0)
UtilityRunJob(#JobToRun#,'Project=':Link1.project,0,0)
UtilityRunJob(JobToRun,'Project=':Link1.project,0,0)
None has worked yet.
UtilityRunJob with job parameter
Moderators: chulett, rschirm, roy
The problem I have is with the JobToRun parameter component. I can't get it to substitute the correct value at runtime.
Assigning the parameters to the job works ok. I do this by removing JobToRun and replacing it with the name of the job I want to run.
e.g.
UtilityRunJob('LoadCustFact','Project=':Link1.project,0,0) works ok.
but
UtilityRunJob('#JobToRun#','Project=':Link1.project,0,0) where the value of job parameter JobToRun at runtime is
Assigning the parameters to the job works ok. I do this by removing JobToRun and replacing it with the name of the job I want to run.
e.g.
UtilityRunJob('LoadCustFact','Project=':Link1.project,0,0) works ok.
but
UtilityRunJob('#JobToRun#','Project=':Link1.project,0,0) where the value of job parameter JobToRun at runtime is
does not work as I described above.LoadCustFact