Bingo! That syntax works, thank you very much. It helps when you find the right place where things are documented. I found the right place in the manual "z/OS UNIX System Service User's Guide".
Thanks to all for your help. Peter From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Jousma, David Sent: Wednesday, October 8, 2025 11:44 AM To: [email protected] Subject: Re: BPXBATCH question Here is a working example. Technically, BPXBATCH only allows for 1 command. So you need to write a script, or stack multiple commands as one with the semicolon. //OMVS EXEC PGM=BPXBATCH //***************************************** //* unmount the specified share. //***************************************** //STDERR DD DSN=&&STDERR,DISP=(NEW,PASS),RECFM=FBA,LRECL=133, // BLKSIZE=0,SPACE=(CYL,(5,1)) //STDOUT DD DSN=&&STDOUT,DISP=(NEW,PASS),RECFM=FBA,LRECL=133, // BLKSIZE=0,SPACE=(CYL,(5,1)) //STDPARM DD * SH cd /remote; echo 'unmount mobius' | su; echo 'unmount mobiusE' | su; echo 'unmount chkstkT' | su; echo 'unmount chkstk' | su; ls -al /* -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
