Is there a way Cobol program on MF to Kick off Datastage 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
edward_m
Charter Member
Charter Member
Posts: 257
Joined: Fri Jun 24, 2005 9:34 am
Location: Philadelphia,PA

Is there a way Cobol program on MF to Kick off Datastage Job

Post by edward_m »

All,

How to have a cobol program on MainFrame kick-off datastage job programmatically??Does anybody called datastage jobs in their cobol programs if so please share your valuable ideas ??

Thanks in Advance..
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

No, that cannot be done from COBOL; but you should be able to do what about issuing a rsh from the JCL calling the program?
edward_m
Charter Member
Charter Member
Posts: 257
Joined: Fri Jun 24, 2005 9:34 am
Location: Philadelphia,PA

Post by edward_m »

ArndW wrote:No, that cannot be done from COBOL; but you should be able to do what about issuing a rsh from the JCL calling the program?
You mean calling Datastage job in JCL..Could you please explain in more detail..
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If you are using DataStage EE MVS edition (that is, jobs that run on the mainframe) then JCL for running the job is generated by DataStage, and you should be able to invoke that from any COBOL program.

Since you can view the COBOL that DataStage generates, you could also edit that and convert it into a callable entity. However, this is stepping outside what you can do "out of the box".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
edward_m
Charter Member
Charter Member
Posts: 257
Joined: Fri Jun 24, 2005 9:34 am
Location: Philadelphia,PA

Post by edward_m »

ray.wurlod wrote:If you are using DataStage EE MVS edition (that is, jobs that run on the mainframe) then JCL for running the job is generated by DataStage, and you should be able to invoke that from any COBOL program.

Since you can view the COBOL that DataStage generates, you could also edit that and convert it into a callable entity. However, this is stepping outside what you can do "out of the box".
We don't have Datastage EE MVS Edition..we have only server edition
Is there any alternative ways to call server edition jobs to call from COBOL program??

Thanks in advance..
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Approach it from another angle, can you start any UNIX job on a server from a COBOL program? If the answer to that question is 'yes' then you can start DataStage jobs. Your sysop can answer that.
rjhcc
Premium Member
Premium Member
Posts: 34
Joined: Thu Jan 27, 2005 4:20 pm

Post by rjhcc »

You can call any subprocess from within the DS MVS job itself. It will then be converted to a call from within the Cobol program. You would have to set up something to allow the trigger on the mainframe to trigger the Unix ds run job.

Otherwise, the JCL and Colbol execute on the mainframe as if they had been written there.

We use Java and MQ to do this when needed.
rjhcc
Post Reply