Re: REXX say 'location:https://... in a batch job
On Fri, Feb 9, 2018 at 6:01 AM, Jantje. wrote: > On Thu, 8 Feb 2018 08:34:36 -0600, John McKown < > john.archie.mck...@gmail.com> wrote: > > > > >I think what you are wanting is a way for a step in a batch job to > "invoke" > >a REST service. Yes, you can write REXX to do this. But it is basically > >doing "low level" sockets programming in REXX using REXX Sockets. > > Not necessarily. Using curl in a Unix shell script (which you can call > through bpxwunix) it becomes a lot easier. > True. I should have mentioned that. I have become somewhat leery of mentioning "non statndard" software due to the number of times I've read people say "management does not allow installation of unapproved software (such as ...) and getting it approved is simply too much work". So I now try to stay with software that is "built in" to z/OS. > > The people at Rocket Software did an excellent job on porting curl (and > other Unix utilities) to zOS. Works like a charm. Thanks Rocket, you saved > me days of tinkering... > Total agreement on that. I am very appreciative of their work. > > Cheers, > > Jantje. > > -- I have a theory that it's impossible to prove anything, but I can't prove it. Maranatha! <>< John McKown -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: REXX say 'location:https://... in a batch job
On Thu, 8 Feb 2018 08:34:36 -0600, John McKown wrote: > >I think what you are wanting is a way for a step in a batch job to "invoke" >a REST service. Yes, you can write REXX to do this. But it is basically >doing "low level" sockets programming in REXX using REXX Sockets. Not necessarily. Using curl in a Unix shell script (which you can call through bpxwunix) it becomes a lot easier. The people at Rocket Software did an excellent job on porting curl (and other Unix utilities) to zOS. Works like a charm. Thanks Rocket, you saved me days of tinkering... Cheers, Jantje. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: REXX say 'location:https://... in a batch job
If you were not aware there is a REXX list that might also be helpful with this. To join, if you have not done so, use this URL, bottom of webpage I think to sign up TSO REXXhttp://www2.marist.edu/htbin/wlvindex?TSO-REXX Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Mary Kay Tubello > Sent: Thursday, February 08, 2018 7:08 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: REXX say 'location:https://... in a batch job > > Hello, > > I have two REXXs in USS on z/OS that I execute from a URL. The ‘say’ re- > directs to a website. Is it possible to execute these in a batch job? And > if yes, how will I know they worked? > > Thanks, > Mary Kay > > 1. This url:https://mvs.humana.com/HUMcgi/url1.sh > executes this REXX to point to another mainframe webserver. > > /* REXX */ > /** > /* This is code for transferring to a web page. > /* > /* 02/07/18 this works!! > /** > say 'location:https://syss.humana.com/perftune' > say > return 0 > > > 2. This url: https://mvs.humana.com/HUMcgi/url.sh > executes this REXX to go to a different server(non-mainframe) > > /* REXX */ > /**/ > /* This is code for transferring to a web page. */ > /* > /* 02/07/18 This works!! has to have return 0*/ > /**/ > > say 'location:https://dev-odssvcs.humana.com/ods/dbflashlistener/?quer > y=0&propagate=true' >say > return 0 > > -- > 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: REXX say 'location:https://... in a batch job
Yes, but they won't do what you want. You'll see the output instead of passing it to a web browser. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@listserv.ua.edu] on behalf of Mary Kay Tubello [mtube...@humana.com] Sent: Thursday, February 8, 2018 9:07 AM To: IBM-MAIN@listserv.ua.edu Subject: REXX say 'location:https://... in a batch job Hello, I have two REXXs in USS on z/OS that I execute from a URL. The ‘say’ re-directs to a website. Is it possible to execute these in a batch job? And if yes, how will I know they worked? Thanks, Mary Kay 1. This url: https://secure-web.cisco.com/15XLlB95l-itiIe6kLLtHrgkl9xj07VP_TWy6OStEWKxEt-Pe9hjuEn70KJt2BBtCg4w1oKSV01Cj3sHwnUTBnIPgppE_OH5W8nmP-g_wj4TCM6RtC6NK_JGn4bM_TDAP-rtf-3Ra26F5di2tnKW-zlp27SQY-9XXaoy2UpOy8PCGJKJnrvaX_5osRdL0EcMwXrXiSUp0_WYy7VQoJZJm77ezwIcuSuBFwONVCK3is6StdHxvXq6PM06lZYdRK1-NRtxQboTHErJb7_Fbt62qOeUf_3zjVFCpXJZHQlv6HNtvRexvbkg9c85mmqTqnwVj9rvVYY4j3fun2eEhGf9HwybW1in55ywsJdimoImdtjdAw3jqxpqqDdvvC38mpgm7_ud-ti7vunVCkxpScfMDWzmfUIEIkZt9YFhLmQj2Og5rHJAnwFU3n6hJO6_XAJNQ/https%3A%2F%2Fmvs.humana.com%2FHUMcgi%2Furl1.sh executes this REXX to point to another mainframe webserver. /* REXX */ /** /* This is code for transferring to a web page. /* /* 02/07/18 this works!! /** say 'location:https://secure-web.cisco.com/1PDuHb2vEt-WmwTkknCKSF6ycPOh3asE7hPlK4aj7Go-FkFTrVLHbKGCkv-ckMVkknSGVwXpAZFa9mo8JM9MGFZ0s5DO8r5K1JsLpqLqOhXO61xqhNrCtoUKmaoj8Q5g8W6UBGKcwBQFIq1pFRptc2ejasWjiDymSedgPuC7UOT9nKFCvFXnme-ss54vrZn3z1tEcNUEvo-r92hoyCHCcNcVuKMLWttx5Ca7Lf1npZAIIHxavHXAbUfmj2IfFxtuzpuvQwN9Lbb0BIgjn4a-thBElWNtybhCXoalsk5GlNDLG7LphTJT0WZ-4NH1eIImRs_FwBhpgo9eCoFMIsFVYLbsTa03w4oLmGJeUIHOMe1HWlUZ61-v_mvtMvCnbOj8eIgnDyyuXkr1zbbbwpyogQUOCmwVm_A2_A8UT_2Jj-aRQf057Ko9iSrpi8IgmMSBU/https%3A%2F%2Fsyss.humana.com%2Fperftune' say return 0 2. This url: https://secure-web.cisco.com/1MfX9kPXga1dxfUM3STlSkZffB4mCPLOwtxa929Y8_d86ammP2DJaz8jOz5zf-Wl3-qMTtuLcLsoF7bVHdJ8XX2RVyxuQtNVRMGbnrh2HiiUOyzGztG3nQBmeLJDmI0ua8yEx0HmPuYe2J2yJc5PzzFU2a-mvBac5bgKfSdUavM8m2Nx3zh2ISnDnyDDFTQ7o-0ZAwZwCtE7EdpAcUCnwQ7KCY5QZt1x9i1bkgDP3QIJK6XYEdymHuyc56PbkPhSV_cjv2IX2TJSQiorXdZ4kqP60YzjPL4r-wGD4c8uGceNjz6Q2mv5LnTVYsZrUAUb7wPuSDJli1jJ3R4Aca8rFi2CX69lq50k6XHCNDj6MQ2yZOZlr_-q8IME60vhbFlfDJ_pZWjtlzbk0Nvodk8Swp5EAxgjRqMYIVabn1sAUqR_bnBMwHks8azCqTi7zfrx6/https%3A%2F%2Fmvs.humana.com%2FHUMcgi%2Furl.sh executes this REXX to go to a different server(non-mainframe) /* REXX */ /**/ /* This is code for transferring to a web page. */ /* /* 02/07/18 This works!! has to have return 0*/ /**/ say 'location:https://secure-web.cisco.com/13jypwrgF4rV9oePQ7k1ap_dsG-7FuFDw7__XHJST7LrvVlSAyg91Asc7pgd8nwT8rb2nrjfbxBuQHCiTL2jZcMjxj6_RZN2cu2p44tam82NyJpykFYBhzLKBphO2IB8jnVE5pahyGfUK1LMuc9jl6jPJ_Q-TxnU7LCxKXMN0w4MyXItGavRIGo67m9zFUTe2zwscITYIsfNDejW1hgWXxMc21_ljGQIhdYtSTL--OKZtsmTlZXsS1XS3D6vxoPldlFMjva2nLyylt3Lgj4FejNpyE2RLUgcJWeJTBXv_YqeXNgyrD3gr-2hc-2aFF8JZZlDfXTozeHDEmGVHHbWt_KC_RoNiwbMV32GOoUH0MffjrYBxtNcEz4PbkVHykaUsw3BctbBbJmrM_3hdpcUeNDSJRd8XcxkE9Iynufbxq7_mUZIHvCA3F8QAsjkg1BW8/https%3A%2F%2Fdev-odssvcs.humana.com%2Fods%2Fdbflashlistener%2F%3Fquer y=0&propagate=true' say return 0 -- 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: REXX say 'location:https://... in a batch job
You might consider executing curl in your rexx to obtain the data from the remote server. You can do that in a batch job. -- Donald Grinsell, Systems Programmer Enterprise Technology Services Bureau SITSD/Montana Department of Administration 406.444.2983 (D) "When they kick out your front door, how you gonna come? With your hands on your head or on the trigger of your gun?" ~ The Clash > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Mary Kay Tubello > Sent: Thursday, February 08, 2018 7:08 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: REXX say 'location:https://... in a batch job > > Hello, > > I have two REXXs in USS on z/OS that I execute from a URL. The ‘say’ re- > directs to a website. Is it possible to execute these in a batch job? And > if yes, how will I know they worked? > > Thanks, > Mary Kay > > 1. This url: > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmvs.humana.c > om%2FHUMcgi%2Furl1.sh&data=02%7C01%7Cdgrinsell%40MT.GOV%7C2075f0da4bcb49763b8 > a08d56efd5357%7C7310812d67f04445a8babaa08aeae2b1%7C0%7C1%7C636536956677281486 > &sdata=JWfe91dW06v%2FNYmG06eNsDaPyfkV%2BFzvXtkN4Ac1ElE%3D&reserved=0 > executes this REXX to point to another mainframe webserver. > > /* REXX */ > /** > /* This is code for transferring to a web page. > /* > /* 02/07/18 this works!! > /** > say 'location:https://syss.humana.com/perftune' > say > return 0 > > > 2. This url: > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmvs.humana.c > om%2FHUMcgi%2Furl.sh&data=02%7C01%7Cdgrinsell%40MT.GOV%7C2075f0da4bcb49763b8a > 08d56efd5357%7C7310812d67f04445a8babaa08aeae2b1%7C0%7C1%7C636536956677281486& > sdata=UHp8vZ5VycVESJenCZEBI9qyUQuHuoxxk5cdknVpe3A%3D&reserved=0 > executes this REXX to go to a different server(non-mainframe) > > /* REXX */ > /**/ > /* This is code for transferring to a web page. */ > /* > /* 02/07/18 This works!! has to have return 0*/ > /**/ > > say 'location:https://dev-odssvcs.humana.com/ods/dbflashlistener/?quer > y=0&propagate=true' >say > return 0 > > -- > 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: REXX say 'location:https://... in a batch job
On Thu, Feb 8, 2018 at 8:07 AM, Mary Kay Tubello wrote: > Hello, > > I have two REXXs in USS on z/OS that I execute from a URL. The ‘say’ > re-directs to a website. Is it possible to execute these in a batch job? > And if yes, how will I know they worked? > Basically, assuming I understand your question, the answer is "no". But, then, I don't really know exactly what you are wanting your batch job to do. Historically, a person uses a web browser to contact a web server with a URL. The web server decodes this URL and displays a page of output. That's the simplest case. In your case, the web server does the equivalent of saying "Go ask George" (re-direct). So the web browser, without interaction with the end user, goes to the re-directed web server, perhaps with a different URL. This is what your example REXX is doing -- telling the web browser software to "go ask George". I think what you are wanting is a way for a step in a batch job to "invoke" a REST service. Yes, you can write REXX to do this. But it is basically doing "low level" sockets programming in REXX using REXX Sockets. https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.hala001/ipapirxa.htm This is not really for the faint of heart. You might find the following to be of interest: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.izua700/IZUHPINFO_RESTServices.htm > > Thanks, > Mary Kay > -- I have a theory that it's impossible to prove anything, but I can't prove it. Maranatha! <>< John McKown -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
REXX say 'location:https://... in a batch job
Hello, I have two REXXs in USS on z/OS that I execute from a URL. The ‘say’ re-directs to a website. Is it possible to execute these in a batch job? And if yes, how will I know they worked? Thanks, Mary Kay 1. This url:https://mvs.humana.com/HUMcgi/url1.sh executes this REXX to point to another mainframe webserver. /* REXX */ /** /* This is code for transferring to a web page. /* /* 02/07/18 this works!! /** say 'location:https://syss.humana.com/perftune' say return 0 2. This url: https://mvs.humana.com/HUMcgi/url.sh executes this REXX to go to a different server(non-mainframe) /* REXX */ /**/ /* This is code for transferring to a web page. */ /* /* 02/07/18 This works!! has to have return 0*/ /**/ say 'location:https://dev-odssvcs.humana.com/ods/dbflashlistener/?quer y=0&propagate=true' say return 0 -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN