Re: Run python with arguments JCL

2025-05-25 Thread Clement Clarke
This link shows some new facilities to allocate, copy, delete and more any normal data set. VSAM data sets can be allocated just like PS or PDS data sets, with similar panels. You can see them here: https://start.oscar-jol.com/using-jol/data-set-operations-centralised or a direct link here https:

Re: Run python with arguments JCL

2025-05-23 Thread Paul Gilmartin
On Fri, 23 May 2025 09:38:14 -0500, Kirk Wolf wrote: >Let's face facts. This thread is all klunky hackery because BPXBATCH is >horrible. It's not that hard to create a utility that just takes normal Unix >shell input in "STDIN DD *" ... > Would DSFS provied a a solution? I see:

Re: Run python with arguments JCL

2025-05-23 Thread Paul Gilmartin
On Fri, 23 May 2025 09:38:14 -0500, Kirk Wolf wrote: >Let's face facts. This thread is all klunky hackery because BPXBATCH is >horrible. It's not that hard to create a utility that just takes normal Unix >shell input in "STDIN DD *" and runs whatever command you want with normal >Unix line i

Re: Run python with arguments JCL

2025-05-23 Thread Kirk Wolf
Let's face facts. This thread is all klunky hackery because BPXBATCH is horrible. It's not that hard to create a utility that just takes normal Unix shell input in "STDIN DD *" and runs whatever command you want with normal Unix line input processing. All of this nonsense to get around that

Re: Run python with arguments JCL

2025-05-23 Thread Clement Clarke
Would my PARMCNTL help? >From CBT //*+File 839: Long Parameters in EXEC - JCL symbolic substitution * DOC FILE It takes a parameter and copies it to a Card file (or a VB Data Set). It fills in Symbolic Parameters from the Parm Field, and can accept long parameters. It also has the ability

Re: Run python with arguments JCL

2025-05-19 Thread Paul Gilmartin
On Mon, 19 May 2025 09:17:58 +0400, Peter wrote: > >I was able to run with STDIN by specifying the command in .sh file. .sh >file had the python3 > I'd imagine that either PARM='PGM /bin/sh" or PARM='SH exec /bin/sh" (I've tried neither) would operate with the entire command stream in STDIN, as ent

Re: Run python with arguments JCL

2025-05-19 Thread Seymour J Metz
ct: Re: Run python with arguments JCL External Message: Use Caution On Mon, 19 May 2025 10:16:02 +, Seymour J Metz wrote: >There is nothing in JCL for calling a program with multiple parameters. Even >in TSO the CPPL points to a single parameter string, from which the program >norm

Re: Run python with arguments JCL

2025-05-19 Thread Paul Gilmartin
On Mon, 19 May 2025 10:16:02 +, Seymour J Metz wrote: >There is nothing in JCL for calling a program with multiple parameters. Even >in TSO the CPPL points to a single parameter string, from which the program >normally relies on parse services to extract positional and keyword >parameters.

Re: Run python with arguments JCL

2025-05-19 Thread Seymour J Metz
IN@LISTSERV.UA.EDU Subject: Re: Run python with arguments JCL External Message: Use Caution On Mon, 19 May 2025 02:36:47 +, Seymour J Metz wrote: >Yes, which is why IBM provided for controlling long parameters for authorized >programs. Too bad they didn't do something similar

Re: Run python with arguments JCL

2025-05-18 Thread Peter
Thanks all for the inputs I was able to run with STDIN by specifying the command in .sh file. .sh file had the python3 On Mon, 19 May 2025, 08:12 Paul Gilmartin, < 042bfe9c879d-dmarc-requ...@listserv.ua.edu> wrote: > On Mon, 19 May 2025 02:36:47 +, Seymour J Metz wrote: > > >Yes, which i

Re: Run python with arguments JCL

2025-05-18 Thread Paul Gilmartin
On Mon, 19 May 2025 02:36:47 +, Seymour J Metz wrote: >Yes, which is why IBM provided for controlling long parameters for authorized >programs. Too bad they didn't do something similar for AC(0). > If a program accepts multiple parameters, should the OS validate the length of each? It's cus

Re: Run python with arguments JCL

2025-05-18 Thread Seymour J Metz
קֵּ֖ר From: IBM Mainframe Discussion List on behalf of Paul Gilmartin <042bfe9c879d-dmarc-requ...@listserv.ua.edu> Sent: Sunday, May 18, 2025 10:27 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Run python with arguments JCL External Message: Use Caution On Mon, 19 May 2025 00:

Re: Run python with arguments JCL

2025-05-18 Thread Paul Gilmartin
On Mon, 19 May 2025 00:20:49 +, Seymour J Metz wrote: >Because there are too many control block dependencies, and too many >applications assuming a maximum of 100. > Does not PARMDD impact all those control block dependencies. There's an integrity threat due to the bad design of making it t

Re: Run python with arguments JCL

2025-05-18 Thread Paul Gilmartin
On Sun, 18 May 2025 17:45:01 -0400, David Spiegel wrote: >Hi Paul, >Please see DFSMSdfp Utilities, Introduction Page 8. Here is an excerpt: >Continuing utility control statements Utility control statements are >contained in columns 1 through 71. >... This:

Re: Run python with arguments JCL

2025-05-18 Thread Seymour J Metz
nday, May 18, 2025 4:48 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Run python with arguments JCL External Message: Use Caution On Sun, 18 May 2025 15:57:36 -0400, David Spiegel wrote: >HI Paul, >It's up to the program processing the instream data whether 73 and on >are treate

Re: Run python with arguments JCL

2025-05-18 Thread David Spiegel
Hi Paul, Please see DFSMSdfp Utilities, Introduction Page 8. Here is an excerpt: Continuing utility control statements Utility control statements are contained in columns 1 through 71. A statement that exceeds 71 characters must be continued on one or more additional records. A nonblank charact

Re: Run python with arguments JCL

2025-05-18 Thread Paul Gilmartin
On Sun, 18 May 2025 15:57:36 -0400, David Spiegel wrote: >HI Paul, >It's up to the program processing the instream data whether 73 and on >are treated as data or not. >IBM Utilities disregard everything to the right of Column 72. >I don't know where this is documented. > What are "IBM Utilities"?

Re: Run python with arguments JCL

2025-05-18 Thread David Spiegel
HI Paul, It's up to the program processing the instream data whether 73 and on are treated as data or not. IBM Utilities disregard everything to the right of Column 72. I don't know where this is documented. Regards, David On 2025-05-18 12:30, Paul Gilmartin wrote: On Sun, 18 May 2025 11:18:4

Re: Run python with arguments JCL

2025-05-18 Thread Paul Gilmartin
On Sun, 18 May 2025 06:23:20 -0400, David Spiegel wrote: >Hi Rene, >If the line numbers are to the right of column 72, they are ignored. > ??? Is that true for instream data sets? Are the rules for STDPARM the same as for PARMDD? Where is this clearly documented? What if either has lines longer

Re: Run python with arguments JCL

2025-05-18 Thread Amr@Systemz
Try placing the entire invocation as a uss file called script.sh and in stdparm use sh script.sh On Sunday, May 18, 2025 at 02:19:01 AM MDT, Peter <05e4a8a0a03d-dmarc-requ...@listserv.ua.edu> wrote: Hello I am trying to run a python code using JCL by passing an arguments but it i

Re: Run python with arguments JCL

2025-05-18 Thread suresh chacko
Thanks David. How about reading the in stream data from a USS file using STDPARM DD PATH= Example: //STDPARM DD PATH='/u/turbo/abc.parms',PATHOPTS=ORDONLY I am not sure this will work for Python in stream data as I never tried the same. Regards, Suresh Chacko On Sun, May 18, 2025, 3:51 PM Dav

Re: Run python with arguments JCL

2025-05-18 Thread Paul Gilmartin
On Sun, 18 May 2025 11:18:42 -0400, David Spiegel wrote: >Hi Paul, >It's not necessarily true for instream data that 73 and later are ignored. > "necessarily"? Does that hedge mean it's sometimes true? When? Please cite the relevant documents. The OP might learn more by prefixing ins shell co

Re: Run python with arguments JCL

2025-05-18 Thread David Spiegel
Hi Paul, It's not necessarily true for instream data that 73 and later are ignored. Regards, David On 2025-05-18 11:06, Paul Gilmartin wrote: On Sun, 18 May 2025 06:23:20 -0400, David Spiegel wrote: Hi Rene, If the line numbers are to the right of column 72, they are ignored. ??? Is that tr

Re: Run python with arguments JCL

2025-05-18 Thread Keith Gooding
Remove line numbering col 73 ? > On 18 May 2025, at 09:23, Peter > <05e4a8a0a03d-dmarc-requ...@listserv.ua.edu> wrote: > > When i run this same command from OMVS or putty it works. Not sure how to > invoke using JCL. > >> On Sun, 18 May 2025, 12:18 Peter, wrote: >> >> Hello >> >> I am t

Re: Run python with arguments JCL

2025-05-18 Thread David Spiegel
frame Discussion List on behalf of David Spiegel <0468385049d1-dmarc-requ...@listserv.ua.edu> Sent: Sunday, May 18, 2025 7:51 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Run python with arguments JCL External Message: Use Caution Hi Suresh, X in Column 72 applies to Assembler, JCL (opti

Re: Run python with arguments JCL

2025-05-18 Thread Martin Trübner
Peter, (I have no clue about Python) your problem looks like it has something to do with sequence numbers. Can you prepare the "card"deck without sequence numbers? Or is there a way to tell python "from now on it is comments" or as in assembler- tell Python to only look at column 1 thru 7

Re: Run python with arguments JCL

2025-05-18 Thread Seymour J Metz
iegel <0468385049d1-dmarc-requ...@listserv.ua.edu> Sent: Sunday, May 18, 2025 7:51 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Run python with arguments JCL External Message: Use Caution Hi Suresh, X in Column 72 applies to Assembler, JCL (optionally) and "old" utility programs (e.g

Re: Run python with arguments JCL

2025-05-18 Thread René Jansen
scussion List on behalf of > René Jansen > Sent: Sunday, May 18, 2025 6:40 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Run python with arguments JCL > > > External Message: Use Caution > > > Hi David, > > You might want to check that, specially for instr

Re: Run python with arguments JCL

2025-05-18 Thread David Spiegel
Hi Suresh, X in Column 72 applies to Assembler, JCL (optionally) and "old" utility programs (e.g. IEHPROGM). For more modern utilities (e.g. supplied by DFSMS like DFSMSDss), the TSO convention is used (either '+' or *'-'*). Regards, David On 2025-05-18 07:13, suresh chacko wrote: Hi Peter,

Re: Run python with arguments JCL

2025-05-18 Thread Seymour J Metz
יְשַׁקֵּ֖ר From: IBM Mainframe Discussion List on behalf of René Jansen Sent: Sunday, May 18, 2025 6:40 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Run python with arguments JCL External Message: Use Caution Hi David, You might want to check that, specially for inst

Re: Run python with arguments JCL

2025-05-18 Thread David Spiegel
Hi Rene, I did not say anything about instream data. You are correct that instream data might be affected by line numbers. For JCL, it is true and has been for at least 50 years. Since ISPF Edit does not display line numbers in Numbered Mode, it would be wise to always issue "num;unnum" to ensu

Re: Run python with arguments JCL

2025-05-18 Thread suresh chacko
Hi Peter, Please try to use the in stream data in multi lines using 'X' as the continuation character in 72 column. Regards, Suresh Chacko On Sun, May 18, 2025, 12:19 PM Peter < 05e4a8a0a03d-dmarc-requ...@listserv.ua.edu> wrote: > Hello > > I am trying to run a python code using JCL by pa

Re: Run python with arguments JCL

2025-05-18 Thread David Spiegel
Hi Rene, If the line numbers are to the right of column 72, they are ignored. Regards, David On 2025-05-18 06:16, René Jansen wrote: Check if you have line numbers in the JCL René. On 18 May 2025, at 10:23, Peter <05e4a8a0a03d-dmarc-requ...@listserv.ua.edu> wrote: When i run this same

Re: Run python with arguments JCL

2025-05-18 Thread René Jansen
Hi David, You might want to check that, specially for instream sysin data for new tools that never heard about JCL ;-) René. > On 18 May 2025, at 12:23, David Spiegel > <0468385049d1-dmarc-requ...@listserv.ua.edu> wrote: > > Hi Rene, > If the line numbers are to the right of column 72, t

Re: Run python with arguments JCL

2025-05-18 Thread René Jansen
Check if you have line numbers in the JCL René. > On 18 May 2025, at 10:23, Peter > <05e4a8a0a03d-dmarc-requ...@listserv.ua.edu> wrote: > > When i run this same command from OMVS or putty it works. Not sure how to > invoke using JCL. > >> On Sun, 18 May 2025, 12:18 Peter, wrote: >> >> H

Re: Run python with arguments JCL

2025-05-18 Thread Peter
When i run this same command from OMVS or putty it works. Not sure how to invoke using JCL. On Sun, 18 May 2025, 12:18 Peter, wrote: > Hello > > I am trying to run a python code using JCL by passing an arguments but it > is failing. > > Is there any alternative or any corrections have to be made