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
<[email protected]> 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 to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN