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..
Is there a way Cobol program on MF to Kick off Datastage Job
Moderators: chulett, rschirm, roy
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?
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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".
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
We don't have Datastage EE MVS Edition..we have only server editionray.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".
Is there any alternative ways to call server edition jobs to call from COBOL program??
Thanks in advance..
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.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
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.
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