I am using the below routine in job sequence using routine activity which is added after sequencer which will have links multiple jobs for failed notifications.when ever adding this rouine activity there is an executing command activity which is calling a datastage job is failing and totally sequence is failing.
What is your error message? This routine will return a string, and if you haven't checked the job sequence option "Automatically handle activities that fail" and "log warnings after activities that finish with status other than OK"
01:12:36: Routine_Activity_212 (ROUTINE DSU.rtneventrmsg) started
01:12:36: Routine_Activity_212 finished, reply=
there is no reply code specified in the log.
I removed routine activity and called the routine in user variable activity .
I connected the user variable with sequencer which is having the links from different jobs with failed conditions and when i ran the job it keeps on running for an hour.
I am also using same kind of routine to log a failed event notification.
I dont understand exactly what you are trying to do.I will explain what i am doing in my sequence.
In my sequence i call first Job and once it is failed i call another generic job where i pass this routing with failed job name as a parameter and generic creates xml later this xml is loaded into queue.
Lets say if PAYLOAD is parameter defined in generic job,value defined in sequence is
A routine that returns a non-zero value will trigger the automatic "error" handler in a sequence. Add an explicit Failure trigger to bypass this handling,
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.