end your lines with ;
echo $PATH;

be aware a 72-80 numbered columns.

El mié, 8 oct 2025, 17:11, Farley, Peter <
[email protected]> escribió:

> 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

Reply via email to