How to send JCL to IBM zOS via Java web application?

Can someone tell me the best way to run the JCL part on IBM zOS from a Java web application on another server (Windows). I also need to get the response code from the job.

Currently, 2 options are available: 1) Using JES - but it is difficult to get a response back 2) Make a call through the DB2 procedure.

Is there any other (better) way

+4
source share
2 answers

I'm not sure this will help, but while I was looking for information on how to use FTP on z / OS to transfer files, I saw the following article from IBM.

http://www.ibm.com/developerworks/systems/library/es-zosbatchjavav/index.html

We hope you find this helpful.

+6
source

I used 2 methods that work:

1- with ftp -i -v -n β†’ $ LOGFILE on unix.

...

site quote FILETYPE = JES then put

JobName = grep "It is known to JES as" $LOGFILE | awk '{print $7}' grep "It is known to JES as" $LOGFILE | awk '{print $7}'

quote site FILETYPE = JES gets $ JOBNAME.x getuser.out (x = 1,2,3 or 4)

delete $ JOBNAME

2- to call v9 ADMIN_JOB_SUBMIT

http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=%2Fcom.ibm.db2z9.doc.admin%2Fsrc%2Ftpc%2Fdb2z_sp_admincommanddb2.htm

0
source

All Articles