Page 1 of 1

Export Job to run on MainFrame Scheduler

Posted: Mon Aug 25, 2003 10:36 am
by reg6148
New to this.

However I have created a job and how need to create a script so our scheduler on the mainframe will execute it.

Has anyone ever done this?

Posted: Tue Aug 26, 2003 7:36 pm
by ray.wurlod
That's exactly what DataStage mainframe jobs do. On the DataStage server you generate the COBOL, and the JCL to compile and run it, then upload same to the mainframe.
The most difficult part is the politics of getting permission to compile and run on the mainframe machines; their guardians are (properly) paranoid about letting anyone or anything touch their babies!
Once the program has been compiled, the run JCL is typically fired from some form of scheduler. It is rare that mainframe jobs (whether DataStage or not) are initiated manually.

If you've created a server job or a parallel job, and want a mainframe-based scheduler to trigger their execution, this is trickier. You could, I suppose, have the mainframe DataStage job generate a file and FTP that to the DataStage server machine, where a job sequencer is executing a WaitForFile activity.