How to call the DS Routine in batch job?

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
Peace
Participant
Posts: 11
Joined: Mon Jun 05, 2006 9:21 pm

How to call the DS Routine in batch job?

Post by Peace »

Dear All,

May I know whether we can call the DS routine in batch job or not?
If yes,could u pls let me know how to call it?


Thanks,
peace
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Search on DEFFUN. This has been covered a lot. There are lots of examples in EtlStats and on this site.
Mamu Kim
Kirtikumar
Participant
Posts: 437
Joined: Fri Oct 15, 2004 6:13 am
Location: Pune, India

Post by Kirtikumar »

What is a batch job here?

If it is referring to the job sequence in DS, then yes you can call it. Routine activity can be used for that.

If batch job means a shell script to call the DS jobs, then probably you have to use the indirect way i.e. create dummy job sequence and then call it in the script.
Regards,
S. Kirtikumar.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

A true batch job is what was used before sequences. That is what VMark originally called them. A batch job is a job which has no stages. It is all job control code.

You are correct if this is not what they meant then my answer is wrong.
Mamu Kim
Kirtikumar
Participant
Posts: 437
Joined: Fri Oct 15, 2004 6:13 am
Location: Pune, India

Post by Kirtikumar »

In some of the project in my org people were using this kind of batch, but they were calling it as job control. So I was unaware about this term from DS pov.
Regards,
S. Kirtikumar.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Job control is valid as well as batch job.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A Batch in DataStage is job control code that is created using the Director client.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Peace
Participant
Posts: 11
Joined: Mon Jun 05, 2006 9:21 pm

Post by Peace »

Yes.I am saying about Job control.
Is there any way to call the routine function from there if I am not using Sequencer?


Thanks for all of your time,


ray.wurlod wrote:A Batch in DataStage is job control code that is created using the Director client.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes, simply invoke it as a function. However, you will need a DEFFUN declaration to inform the compiler that the name followed by a left parenthesis is that of a function rather than that of a dimensioned array.
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