How hard can this be I ask myself.......a good while later....
1. So it's much easier to see results in batch .
//UNIX EXEC PGM=BPXBATCH,PARM='SH /u/hanko/runhe.sh'
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
2. It's much easier trying not to resolve the battle of the quotes. exec
string needs to be quoted and then so do the arguments for tso and tsocmd
. And the submit !! Who is doing the parsing when ? I give up .
So what I came up with is
events=vmstart,exec="tsocmd 'MSUB' " HelloWorld <===MSUB is CAPS ON !
in a shell script that also specifies the following env variables
export sysexec="alloc da('HANKO.BPXBATCH.EXEC') shr"
export TSOALLOC=sysexec
(I think TSOALLOC is redundant but included for completeness)
and then member MSUB looks like
/* Rexx */
"submit 'hanko.pdscntl(iefbr14)'"
and that all works ...hope it does for you.
Hank
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN