Page 1 of 1

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

Posted: Mon Aug 06, 2007 10:02 pm
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..

Posted: Mon Aug 06, 2007 10:35 pm
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?

Posted: Mon Aug 06, 2007 10:42 pm
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..

Posted: Mon Aug 06, 2007 10:48 pm
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".

Posted: Tue Aug 07, 2007 6:55 pm
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..

Posted: Tue Aug 07, 2007 7:14 pm
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.

Posted: Thu Mar 13, 2008 1:25 am
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.