Re: Submitting batch jobs from a web browser
I know ZOSMF,JZOS and FTP can do what Roger desires. I also know Zowe can also. We handle source code via GIT and use our own written CI that submits the compiles / assemblies and links to z/OS. I know there must be other ways to submit a job .. Scott On Wed, Mar 20, 2019 at 8:48 AM Gil Cardenas wrote: > Hi Roger, we use BMC Control-M here at our shop so not sure what your AWS > Batch scheduler capabilities are, however, I wrote an application several > years back that took advantage of the Control-M api's to submit jobs from a > webpage via FTP to the JES reader. > > It was really a slick little tool that would allow for parameters to be > passed and would email the user when the job ended. > > It was one of my first projects into learning C# & HTML coding so it > wasn't elegant but I know it can be done. > > We used it for several years but it kind died off due to an acquisition. > > It's been many moons ago but in a nutshell, we would build ASPX web page > forms that a user could fill out that had validation built in and once they > had filled out the form they would submit it and a C# program would take > the parameters and "build" the JCL that was then FTP'd to the mainframe > internal reader. > > There was an index page with all of the available jobs that could be > requested and we used security groups to limit which users had access to > which jobs. This application was really built for the non-operator type > business users and programmers. > > The Control-M API had the ability to send an email when the job ended so > that was how we notified a user that their job and or reports were > available. > > Hope this sparks some ideas. > Gil. > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- *IDMWORKS * Scott Ford z/OS Dev. “By elevating a friend or Collegue you elevate yourself, by demeaning a friend or collegue you demean yourself” www.idmworks.com scott.f...@idmworks.com Blog: www.idmworks.com/blog *The information contained in this email message and any attachment may be privileged, confidential, proprietary or otherwise protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this message and any attachment is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and permanently delete it from your computer and destroy any printout thereof.* -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Submitting batch jobs from a web browser
Hi Roger, we use BMC Control-M here at our shop so not sure what your AWS Batch scheduler capabilities are, however, I wrote an application several years back that took advantage of the Control-M api's to submit jobs from a webpage via FTP to the JES reader. It was really a slick little tool that would allow for parameters to be passed and would email the user when the job ended. It was one of my first projects into learning C# & HTML coding so it wasn't elegant but I know it can be done. We used it for several years but it kind died off due to an acquisition. It's been many moons ago but in a nutshell, we would build ASPX web page forms that a user could fill out that had validation built in and once they had filled out the form they would submit it and a C# program would take the parameters and "build" the JCL that was then FTP'd to the mainframe internal reader. There was an index page with all of the available jobs that could be requested and we used security groups to limit which users had access to which jobs. This application was really built for the non-operator type business users and programmers. The Control-M API had the ability to send an email when the job ended so that was how we notified a user that their job and or reports were available. Hope this sparks some ideas. Gil. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Submitting batch jobs from a web browser
It'd be helpful to understand what sort of job(s) you'd like to submit to offer more precise advice. However, to get started, there's an excellent IBM redbook on z/OSMF: http://www.redbooks.ibm.com/redbooks/pdfs/sg247851.pdf One option, if your users are familiar with and like z/OS SDSF, is to use z/OSMF's SDSF interface. That option is described in Section 3.11 of the redbook. Or, if you'd like to roll-your-own user interface, then yes, you can use z/OSMF's job-related REST APIs. Take a look at Chapter 18 of the redbook, including section 18.5. Your roll-your-own UI can be (and probably ought to be) served by z/OS itself using a Liberty runtime, most probably via JAX-RS. If you have CICS Transaction Server for z/OS or WebSphere Application Server for z/OS, you have Liberty runtime licensing/support already. If you don't, then obviously you can go get either of those products, or you can use Open Liberty (that you'd support): https://openliberty.io Please give at least some thought to security-related issues, as you always should. There are other ways to do this, but I'm providing the z/OSMF-related answers at the moment since you asked. As a notable example of another way to do this, you could create your roll-your-own UI, run it in a Liberty runtime on z/OS, and use JZOS methods for job submission and related capabilities -- including com.ibm.jzos.MvsJobSubmitter. You also mentioned IBM Workload Scheduler for z/OS, and that too can certainly get the job done. Take a look at the "Application Lab" features since that's likely the best fit. If you like CGIs, then the IBM HTTP Server for z/OS and REXX CGIs (for example) are ready to help. There are lots and lots of choices. Feel free to post a follow-up if you'd like any more info. Timothy Sipples IT Architect Executive, Industry Solutions, IBM Z & LinuxONE E-Mail: sipp...@sg.ibm.com -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Submitting batch jobs from a web browser
We have several procedures that use the z/OSMF jobs Rest interface for exactly that reason. This REST interface is actually well described in the z/OSMF Programming Guide. ("Using the z/OSMF REST services" > "z/OS jobs REST interface"). I would be happy to share some example on how we are using it now. Ronald Kristel From: IBM Mainframe Discussion List on behalf of Wolfgang Fritz <016acdc52809-dmarc-requ...@listserv.ua.edu> Sent: Wednesday, March 20, 2019 6:34:13 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Submitting batch jobs from a web browser Yes you cann use ftp with filetype Jes. Am 20.03.2019 um 01:53 schrieb Roger Sawtell: > We are seeking a way to submit jobs to Z/OSv2.2 from a web browser on our > intra-net and to get the response(s) back to the browser. > From the reading we have done, we believe that this should be possible using > Z/OSMF, but are struggling somewhat to find out exactly how. > It has also been suggested to us that it could be done with TWS, but we > haven't found a way to do that either. > I would be most appreciative if someone could suggest further reading or give > us a hint whether what we want to do is possible or not. > Roger Sawtell > Senior Developer > Air New Zealand Ltd > Good planets are hard to find - please think of the environment before you > print this email. > > CAUTION - This message may contain privileged and confidential > information intended only for the use of the addressee named above. > If you are not the intended recipient of this message you are hereby > notified that any use, dissemination, distribution or reproduction > of this message is prohibited. If you have received this message in > error please notify Air New Zealand immediately. Any views expressed > in this message are those of the individual sender and may not > necessarily reflect the views of Air New Zealand. > _ > For more information on the Air New Zealand Group, visit us online > at http://www.airnewzealand.com > _ > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Submitting batch jobs from a web browser
Yes you cann use ftp with filetype Jes. Am 20.03.2019 um 01:53 schrieb Roger Sawtell: We are seeking a way to submit jobs to Z/OSv2.2 from a web browser on our intra-net and to get the response(s) back to the browser. From the reading we have done, we believe that this should be possible using Z/OSMF, but are struggling somewhat to find out exactly how. It has also been suggested to us that it could be done with TWS, but we haven't found a way to do that either. I would be most appreciative if someone could suggest further reading or give us a hint whether what we want to do is possible or not. Roger Sawtell Senior Developer Air New Zealand Ltd Good planets are hard to find - please think of the environment before you print this email. CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Air New Zealand immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Air New Zealand. _ For more information on the Air New Zealand Group, visit us online at http://www.airnewzealand.com _ -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Submitting batch jobs from a web browser
Paul We would like to use Javascript and a RESTful interface on the client side. That's what led us to looking at Z/OSMF We just don't have enough experience/knowledge in this area to know how to do it. What you suggest might be a good option. We are not familiar with Co:Z. ITschak: Submit is not an issue It is if you can't see how it is done, which is where we are at right now Thank you gentlemen, for your responses - Roger -Original Message- From: IBM Mainframe Discussion List On Behalf Of Paul Gilmartin Sent: Wednesday, 20 March 2019 3:11 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Submitting batch jobs from a web browser On Wed, 20 Mar 2019 00:53:57 +, Roger Sawtell wrote: >We are seeking a way to submit jobs to Z/OSv2.2 from a web browser on our >intra-net and to get the response(s) back to the browser. Might Javascript or simply HTML forms on the client side plus either Co:Z or a CGI program on the z/OS side work? Would you want to supply the JCL as an uploaded file? -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN Good planets are hard to find - please think of the environment before you print this email. CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Air New Zealand immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Air New Zealand. _ For more information on the Air New Zealand Group, visit us online at http://www.airnewzealand.com _ -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Submitting batch jobs from a web browser
Submit is not an issue. Just add a dd card for internal reader. Osmf indeed can read job output but you need to know your jobname and may be number. However, never tried that, but i think you can use rexx cgi to access the spool. ITschak בתאריך יום ד׳, 20 במרץ 2019, 3:04, מאת Roger Sawtell < roger.sawt...@airnz.co.nz>: > We are seeking a way to submit jobs to Z/OSv2.2 from a web browser on our > intra-net and to get the response(s) back to the browser. > From the reading we have done, we believe that this should be possible > using Z/OSMF, but are struggling somewhat to find out exactly how. > It has also been suggested to us that it could be done with TWS, but we > haven't found a way to do that either. > I would be most appreciative if someone could suggest further reading or > give us a hint whether what we want to do is possible or not. > Roger Sawtell > Senior Developer > Air New Zealand Ltd > Good planets are hard to find - please think of the environment before you > print this email. > > CAUTION - This message may contain privileged and confidential > information intended only for the use of the addressee named above. > If you are not the intended recipient of this message you are hereby > notified that any use, dissemination, distribution or reproduction > of this message is prohibited. If you have received this message in > error please notify Air New Zealand immediately. Any views expressed > in this message are those of the individual sender and may not > necessarily reflect the views of Air New Zealand. > _ > For more information on the Air New Zealand Group, visit us online > at http://www.airnewzealand.com > _ > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Submitting batch jobs from a web browser
On Wed, 20 Mar 2019 00:53:57 +, Roger Sawtell wrote: >We are seeking a way to submit jobs to Z/OSv2.2 from a web browser on our >intra-net and to get the response(s) back to the browser. Might Javascript or simply HTML forms on the client side plus either Co:Z or a CGI program on the z/OS side work? Would you want to supply the JCL as an uploaded file? -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Submitting batch jobs from a web browser
We are seeking a way to submit jobs to Z/OSv2.2 from a web browser on our intra-net and to get the response(s) back to the browser. >From the reading we have done, we believe that this should be possible using >Z/OSMF, but are struggling somewhat to find out exactly how. It has also been suggested to us that it could be done with TWS, but we haven't found a way to do that either. I would be most appreciative if someone could suggest further reading or give us a hint whether what we want to do is possible or not. Roger Sawtell Senior Developer Air New Zealand Ltd Good planets are hard to find - please think of the environment before you print this email. CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Air New Zealand immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Air New Zealand. _ For more information on the Air New Zealand Group, visit us online at http://www.airnewzealand.com _ -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN