Problem calling routine using routine activity

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dstest
Participant
Posts: 66
Joined: Sun Aug 19, 2007 10:52 pm

Problem calling routine using routine activity

Post by dstest »

I created a routine and in the routine i have a code like below.

Ans=1

when i call this routine using routine activity i am getting the following warning and is aborting.

seqTest.Test.JobControl (@Routine_Activity_38): Routine DSU.Test
did not finish OK, return code = '1'
seqTest.Test.JobControl (@Routine_Activity_38): Controller problem: Unhandled failure (1) encountered calling routine DSU.Test

when i call the same routine in user variable activity it is working fine

can any one please help me what is the problem
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

This is due to how you use the routine activity in your job sequence. Have you added an output link that is condition/unconditional from the routine activity?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Better yet, search the forums for Controller problem: Unhandled failure for the answers you seek. It's only been discussed a bajillion times.
-craig

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