Parameters from a Job Control to a 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

Post Reply
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

User-written routines are catalogued with a "DSU." prefix (the Test grid knows about this).
To call your routine from another, including from Job Control, you need to call it with this prefix.
Call DSU.LogEvento("Job Name", ErrorCode)

The other question is what kind of routine did you create? The Call suggests that you created it as a before/after routine; if you did not, and created it as a transform function, then the Call must be handled differently; the first argument is used for the return value, and each other argument position is pushed along one. Please check this, get back to the thread and let us know. Routine type is a drop down list on the Routine General properties tab.
Post Reply