How to call a Routine in a Batch

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
asvictor
Participant
Posts: 31
Joined: Tue Sep 02, 2003 3:06 am
Location: Singapore
Contact:

How to call a Routine in a Batch

Post by asvictor »

Hi,

I have a routine to Drive the first and last Date of Financial Year.
This I need to call in a Batch Job Control. Can some one help me to do that Please ?

Cheers,

Victor
Victor Auxilium
raviyn
Participant
Posts: 57
Joined: Mon Dec 16, 2002 6:03 am

Post by raviyn »

Hope u are using the Sequencers for batch , there is a Routine Activity stage to call a DS routine.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If you are talking about home-rolled Job Control, then you'll have to declare if first and then let DataStage know it's a 'user defined' routine.

Search the forum for 'DEFFUN' and 'DSU.', you should find several examples of what you need. Just came up yesterday, matter of fact, in the DSWaitForJobList thread. :)
-craig

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