Problem in using DS Routine

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

aaikat
Participant
Posts: 47
Joined: Tue Mar 07, 2006 2:49 am

Post by aaikat »

Here is the derivation(routine call) in Transformer stage of Job TESTAA0007 :-

MyGetLinkCount("TESTAA0006","Transformer_1","DSLink4")

After including those comments here is the log :

Transformer_2(): Routine input variableJobName is "TESTAA0006"
Transformer_2(): Routine input variableStageName is "Trasnformer_1"
Transformer_2(): Routine input variableLinkName is "DSLink4"
Transformer_2()(fatal error from DSAttachJob): Job control fatal error (-12)(...)

So within the routine MyGetLinkCount it is unable to attach job TESTAA0006. I checked it is not running.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Error -12 is DSJE_BADNAME /* Job name badly formed */ - check to make sure it exists as you've specified it, down to the casing of the letters.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If you find that the job name checks out OK, check the stage name. "Trasnformer_1" seems to me to be misspelled.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply