I think this may have been discussed before, but I just read (reread maybe) the article mentioned. Uhh, sure, let's take a 14 line job and change it to a 60+ line (without blank lines added for clarity) python script.
My eye caught this gem of a paragraph toward the end of the article. Now we have a reasonable replacement for our 14-line JCL. Our new Python version of the execution obviously uses more lines than JCL. These lines separate code from the input and data needed to run the code effectively. Additionally, the code checks input so the system doesn’t have to. Finally, it keeps people from the typos that happen when one modifies JCL prior to submission. This not only ensures that execution is less error free, but it also allows us to create a separation of concern with defaults set at configuration time and another set of options defined at execution time. "This not only ensures that execution is less error free". Hmm, Freudian slip here (?) but the double negative in there means the python script will introduce more errors into the execution. Rex -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Jay Maynard Sent: Thursday, March 2, 2023 6:57 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: [EXTERNAL] Re: Mainframe REXX (Re: Badmouthing Rexx and ooRexx - again (Re: zOSMF and zOWE for non-mainframers I haven't tried to write anything in Rexx, let alone a TCP server. I'd probably be inclined to use Go for that, though. JCL to Python: https://urldefense.com/v3/__https://medium.com/theropod/the-journey-from-jcl-to-python-so-easy-even-an-old-mainframer-can-do-it-f088cc49366a__;!!KjMRP1Ixj6eLE0Fj!sV2rmzBI_3NXEz_b9z409tpm3-l1pL0tjnLCN607gy1MfjM-MBCXb-xAbgngG1ACmxR3BKF6IthM6y-f0vDCBQ$ On Thu, Mar 2, 2023 at 6:54 AM David Crayford <dcrayf...@gmail.com> wrote: > On 2/3/23 20:43, Jay Maynard wrote: > > "The mainframe needs to keep pace with the industry." > > > > I certainly hope that whatever the industry is doing that gets > > adapted to the mainframe does so much more cleanly than, say, Python... > > Like what? Have you ever tried to write a TCP server in REXX? > > > > The absolute abortion that is Python's idea of replacing JCL makes > > COBOL > look like APL. > > I haven't seen that. Can you post a link? > > ---------------------------------------------------------------------- The information contained in this message is confidential, protected from disclosure and may be legally privileged. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any disclosure, distribution, copying, or any action taken or action omitted in reliance on it, is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to this message and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN