Thanks everyone for your contributions. The string below worked and I'm now looking at driving a REXX exec.
-Xdump:tool:events=vmstart,exec=tsocmd submit "'SA.JCL(APFAUTH)'" -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Hank Oerlemans Sent: 20 March 2014 23:47 To: [email protected] Subject: Re: Java -Xdump:tool option on z/OS 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 This e-mail message has been scanned and cleared by Postini / Google Message Security and the UNICOM Global security systems. This message is for the named person's use only. If you receive this message in error, please delete it and notify the sender. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
