Compilation Error in Transformer stage

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
aschindler
Participant
Posts: 30
Joined: Wed May 15, 2013 1:22 am
Location: Bangalore

Compilation Error in Transformer stage

Post by aschindler »

Hi,

I am facing a compilation error in transofrmer stage in my server job,where in i have used a simple routine to get the link name by passing job name and stage name as arguments,below is the code and error msg:

Routine:

Code: Select all

$include DSINCLUDE JOBCONTROL.H
JOBHANDLE=DSAttachJob(JOBNAME,DSJ.ERRFATAL)
Ans:=DSGetStageInfo(JOBHANDLE,STAGENAME,DSJ.LINKLIST)
Error code:
Error compiling generated subroutine for stage Job_name.Transformer

Called above routine in transformer

Please let me know what went wrong.
Cheers,
Schindler
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And if you remove the call to that routine does it compile ok? Please detail your job design.
-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 that's your entire routine you need to replace ":=" with "=". The ":=" operator assumes that Ans already has a value to which you wish to concatenate the right-hand operand.

Does this routine have arguments JOBNAME and STAGENAME? Can you test the routine OK using the routine Test facility?
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