Jon, You have to email the listserv for everyone to see your note. See instructions at the bottom of this post.
All, I think I've posted this before, but this is how I avoid semi-colons and plus signs. I just have a job where I can type normal commands and see the output as I'd like. //DONBPX JOB (,R282),POITRAS,NOTIFY=SASDTP,TIME=(0,10),CLASS=A, // REGION=1M,MSGCLASS=A //* //* The idea here is that I'd like to see the commands printed //* along with the output. set -x will do that (while printing //* a "++" in front of the commands, but that's ok), but sends //* it's debugging output to stderr. By setting stdout and //* stderr to the same file, the output is interleaved and the //* final step prints the result. //* //COPY1 EXEC PGM=IEBGENER //SYSIN DD DUMMY //SYSUT1 DD * set -x cd /u/sasdtp/temp pwd ls -Fartl date /* //SYSUT2 DD PATH='/u/sasdtp/donbpx2.txt', // PATHOPTS=(ORDWR,OTRUNC,OCREAT),PATHMODE=SIRWXU, // PATHDISP=(KEEP,DELETE),FILEDATA=TEXT //SYSPRINT DD SYSOUT=* //BPXBAT EXEC PGM=BPXBATCH,PARMDD=PARMINDD //STDIN DD DUMMY //STDOUT DD PATH='/u/sasdtp/donbpx2.out.txt', // PATHOPTS=(OWRONLY,OTRUNC,OCREAT),PATHMODE=SIRWXU, // PATHDISP=(KEEP,DELETE),FILEDATA=TEXT //STDERR DD PATH='/u/sasdtp/donbpx2.out.txt', // PATHOPTS=(OWRONLY,OTRUNC,OCREAT),PATHMODE=SIRWXU, // PATHDISP=(KEEP,DELETE),FILEDATA=TEXT //PARMINDD DD * sh /u/sasdtp/donbpx2.txt /* //COPY2 EXEC PGM=IEBGENER //SYSIN DD DUMMY //SYSUT1 DD PATH='/u/sasdtp/donbpx2.out.txt', // PATHOPTS=(ORDONLY), // RECFM=VB,LRECL=1024,BLKSIZE=3000 //SYSUT2 DD SYSOUT=* //SYSPRINT DD SYSOUT=* // result: ++ cd /u/sasdtp/temp ++ pwd /u/sasdtp/temp ++ ls -Fartl total 620 -rw-r--r-- 1 SASDTP CCD 5797 Jan 20 2011 hexdump.C -rwxr-xr-x 1 SASDTP CCD 118784 Jan 20 2011 hexdump* -rwx------ 1 SASDTP CCD 129024 Jan 20 2011 hexdump.pax* drwxr-xr-x 2 SASDTP CCD 8192 Oct 30 2019 ./ drwxr-xr-x 131 SASDTP CCD 32768 May 15 14:04 ../ ++ date Fri May 15 14:15:35 UTC 2020 In article <3a46c5b9-6e54-4a14-affb-79dc3437c...@googlegroups.com> you wrote: > On Friday, May 15, 2020 at 10:23:30 AM UTC+10, Jon Bathmaker wrote: > > Hi, > > > > Because of auditor demands we are no longer able to run TSO USS commands > > that require UID=0,?? so I attempting figure out how to run?? USS commands > > in under BPXBATCH.?? The following is a job to debug the unmount command > > in batch but I have been unsuccessful so far.???? I am hoping that I am > > doing something wrong and that one of you can point out my error. > > > > Here is the JCL: > > > > //BATBPX?? EXEC PGM=BPXBATCH > > > > //STEPLIB?? DD DISP=SHR,DSN=SYS1.CEE.SCEERUN > > > > //STDERR???? DD SYSOUT=* > > > > //STDOUT?? ??DD SYSOUT=* > > > > //STDPARM?? DD * > > > > SH su > > > > SH echo $PATH > > > > SH unmount -fv ZOS240.SYS1.OMVS.SYSRES.OS240971.FNT.ZFS > > > > Here is the contents of STDERR when the job runs. > > > > FSUM5023 su: User ID "SH" does not exist, or the RACF profile does not > > contain an OMVS segment. > > > > > > Thanks. > > > > Best regards, > > > > Jon Bathmaker > > > > z/OS Systems Programmer > > > > > > ---------------------------------------------------------------------- > > For IBM-MAIN subscribe / signoff / archive access instructions, > > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > In case you have a very long cmd you want to continue over more then one line > then you can do that by using a + sign like this > //JAVAMTST EXEC PGM=IKJEFT01 > //SYSPRINT DD SYSOUT=* > //SYSUDUMP DD SYSOUT=* > //SYSTSPRT DD SYSOUT=* > //STDOUT DD SYSOUT=* > //STDERR DD SYSOUT=* > //SYSTSIN DD * > BPXBATCH SH + > cd /usr/lpp/ja+ > va/J8.0_64/bin ; + > ./java -version > Above produced this output to show that it worked > READY > > BPXBATCH SH cd /usr/lpp/java/J8.0_64/bin ; ./java -version > > READY > > END > > java version "1.8.0_241" > > Java(TM) SE Runtime Environment (build 8.0.6.7 - > pmz6480sr6fp7-20200312_01(SR6 F > IBM J9 VM (build 2.9, JRE 1.8.0 z/OS s390x-64-Bit Compressed References > 20200219 > OpenJ9 - 3088245 > > OMR - eb95a4d > > IBM - 83517b6) > -- Don Poitras - SAS Development - SAS Institute Inc. - SAS Campus Drive sas...@sas.com (919) 531-5637 Cary, NC 27513 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN