How to submit JCL on IBM zOS through Java web app?
Question
Can someone tell me the best way to run a piece of JCL on IBM zOS from a Java web app on a different server (Windows). I also need get a response code back from the job.
The 2 options at the moment are: 1) Using JES - But its hard to get the response back 2) Make a call through a DB2 procedure.
Is there another (better) way
Solution
I"m not sure if this will help, but while I was looking for information about 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
Hope you find it helpful.
OTHER TIPS
I used 2 methods that work:
1- with ftp -i -v -n >> $LOGFILE on unix.
...
quote site FILETYPE=JES then put
JOBNAME=grep "It is known to JES as" $LOGFILE | awk '{print $7}'
quote site FILETYPE=JES get $JOBNAME.x getuser.out (x=1,2,3 or 4)
delete $JOBNAME
2- on v9 call ADMIN_JOB_SUBMIT