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 71 for code


Martin

Am 18.05.25 um 10:23 schrieb 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,<dbajava...@gmail.com> 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?

//STEP1 EXEC PGM=BPXBATCH

//STDERR DD SYSOUT=*

//STDOUT DD SYSOUT=*

//STDPARM DD *

SH python3 /usr/local/pythonScripts/restartTask.py dbtask



  error

usage: restartTask [-h] [-d] task

restartTask: error: unrecognized arguments: 00070001


Peter

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@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

Reply via email to