No help unfortunately.  I tried both of these (AOPBATCH requires the leading 
“/” in the PARM):


//SHOWSHEL EXEC PGM=AOPBATCH,PARM='//bin/echo $PATH'

//STDIN       DD  DUMMY

//STDOUT   DD  SYSOUT=*

//STDERR   DD  SYSOUT=*


//SHOWSHEL EXEC PGM=AOPBATCH,PARM='//bin/sh -c /bin/echo $PATH'

//STDIN       DD  DUMMY

//STDOUT   DD  SYSOUT=*

//STDERR   DD  SYSOUT=*

RC=0, STDOUT had zero lines of output.

Peter

From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
rpinion865
Sent: Wednesday, October 8, 2025 11:23 AM
To: [email protected]
Subject: Re: BPXBATCH question

Maybe you could try AOPBATCH. "Confidentially doc, I am the wabbit. " Bugs 
Bunny Sent with Proton Mail secure email. On Wednesday, October 8th, 2025 at 
11: 11 AM, Farley, Peter <0000031df298a9da-dmarc-request@ LISTSERV. UA. EDU> 
wrote: >
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization. Use caution when clicking 
links or opening attachments. Report suspicious emails by clicking the "Report" 
button in your Outlook toolbar or forward to [email protected].
ZjQcmQRYFpfptBannerEnd

Maybe you could try AOPBATCH.







"Confidentially doc, I am the wabbit."



Bugs Bunny



Sent with Proton Mail secure email.



On Wednesday, October 8th, 2025 at 11:11 AM, Farley, Peter 
<[email protected]> wrote:



> I have a simple execution of BPXBATCH where all I wish to accomplish is to 
> display the PATH in effect when BPXBATCH starts a shell instance and the 
> environment variables that are set. Here is my simple JCL setup:

>

> //SHOWSHEL EXEC PGM=BPXBATCH,PARM=SH

> //STDIN DD *

> /bin/echo $PATH

> /bin/env

> //STDOUT DD SYSOUT=*

> //STDERR DD SYSOUT=*

>

> The output on STDOUT reflects the messages generated by /etc/profile but 
> nothing else.

>

> According to "Chapter 19. BPXBATCH utility" in the "XL C/C++ Users Guide", 
> "If you specify SH with no program-name information, BPXBATCH attempts to run 
> anything read in from stdin.".

>

> That is not happening, and I do not understand why not.

>

> Any RTFM or other information you can provide to cure my ignorance is 
> appreciated.

>

> Unfortunately we do not have the luxury of having the CoZ tools installed 
> here so I do not have COZBATCH as an alternative.

>

> Peter

>

> 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



----------------------------------------------------------------------

For IBM-MAIN subscribe / signoff / archive access instructions,

send email to [email protected] with the message: INFO IBM-MAIN

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

Reply via email to