tags:

views:

77

answers:

2

I have been working in java for the past 4 years. I would like to inform that my knowledge in mainframes system is a BIG 0 and am looking for a way to invoke a JCL scrip from a java class.

Can someone please let me know a way of doing this. What are all the pre-requisites to accomplish the same?

thanks in advance, raj.

+1  A: 

IBM should have a Java toolkit available for interfacing with the native system. On the AS/400 (aka iSeries, i5, SystemI, ...) it was called JT/400 (Java Toolkit for the 400). I imagine they have something very similar for the zSeries (are they called SystemZ now?) machines.

Perhaps System.exec() might be implemented in the z/OS JVM to run a system job.


I have been googling for a while now and can't find anything for z/OS or OS/390 comparable to JT/400; it looks like you will need to dive into JNI to do what you want, if System.exec is of no use to you. Start with IBM's information on using JNI in OS/390.

Software Monkey
+2  A: 

You can use the FTP interface to JES to submit JCL jobs:

http://www.ehow.com/how_5213702_ftp-jcl-mainframe.html

Kjetil Ødegaard