Capturing an error when using UtilityRunjob()

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
sec105105
Participant
Posts: 44
Joined: Fri Mar 20, 2009 7:21 am
Location: Ottawa

Capturing an error when using UtilityRunjob()

Post by sec105105 »

1) I have a server job in DS 8.5 that reads records from a file, passing a field to a sub-job using UtilityRunjob() in a transformer. It has crashed once in a while, but the parent job returns a green/clean status. Is there a way to trap the error if the sub-job fails?

2) I'd prefer not to use the UtilityRunjob to call a sub-job with a parameter generated from SQL or file. Is there a best-practice for doing such a process in a parallel job or sequence ? I saw some notes about using USERSTATUS, but one of the notes said that wasn't suitable for a parallel job.

thanks,
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

1) I don't recall but the docs say "Runs the specified job and returns statistics from the job run" and "The statistics are returned in an array". I would start by looking at what the 'statistics' show when the called job fails.

2) Have you looked into a looping Sequence job?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply