STDPARM just needs semicolons to terminate every statement. In fact, unless you
do, it's one line. STDPARM is concatenated into one long string, up to 64K long.
If you need to split a line, providing your resolved symbol is not longer than
80 (assuming 80 byte input), put it on its own line - you might need some
mucking about if longer than that.
Simple example :
//STDPARM DD *
SHRC
echo 'zfsadm define -aggr MY.ZFS
-tracks 50 50' | su;
if [[ $? -ne 0 ]]; then
echo 'Failed to create ZFS';
exit 16;
fi;
echo 'MY.ZFS created.';
//
It can be useful to use SHRC rather than SH to propagate the shell script
return code back to the job.
https://www.ibm.com/docs/en/zos/3.2.0?topic=environments-bpxbatch
--
Andy Styles
-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
Philippe Leite
Sent: 26 August 2026 15:24
To: [email protected]
Subject: Re: BPXBATCH (again) and continuation
*** This email is from an external source - be careful of attachments and
links. Please report suspicious emails ***
Hi Radoslaw,
In this case, I recommend creating a simple Shell script to do what you want.
Best regards,
Philippe Leite
On Wed, Aug 26, 2026 at 11:21 AM Radoslaw Skorupka <
[email protected]> wrote:
> Hello,
>
> Now I have another issue with the BPXBATCH.
> I used the following:
>
> /STEP0001 EXEC PGM=BPXBATCH
> //STDENV DD *
> _BPX_SHAREAS=YES
> _BPX_BATCH_SPAWN=YES
> //STDOUT DD SYSOUT=*
> //STDERR DD SYSOUT=*
> //STDPARM DD *
> SH echo "mkdir -p /some/very/long/dir &&&& chmod -R 750
> /some/very/long/dir" | su
>
>
> Actually I used &VARiable for directory name, however after the
> substitution the line length exceed 80 characters and yields abend 001-04.
> Can I split the line? What are the continuation rules? Note the ""
>
> --
> Radoslaw Skorupka
> Lodz, Poland
>
> ----------------------------------------------------------------------
> 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
Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ.
Registered in Scotland no. SC95000. Telephone: 0131 225 4555.
Lloyds and Lloyds Bank are trading names of Lloyds Bank plc. Registered Office:
25 Gresham Street, London EC2V 7HN. Registered in England and Wales no. 2065.
Telephone 0207626 1500.
Bank of Scotland plc. Registered Office: The Mound, Edinburgh EH1 1YZ.
Registered in Scotland no. SC327000. Telephone: 03457 801 801.
Lloyds and Lloyds Bank are trading names of Lloyds Bank Corporate Markets plc.
Registered office: 25 Gresham Street, London EC2V 7HN. Registered in England
and Wales no. 10399850.
Lloyds Wealth Limited. Registered Office: 25 Gresham Street, London EC2V 7HN.
Registered in England and Wales no. 11722983.
Lloyds Bank plc, Bank of Scotland plc and Lloyds Bank Corporate Markets plc are
authorised by the Prudential Regulation Authority and regulated by the
Financial Conduct Authority and Prudential Regulation Authority.
Lloyds Wealth Limited is authorised and regulated by the Financial Conduct
Authority.
Lloyds International, Lloyds Bank International, Lloyds International Private
Banking and Lloyds Bank International Private Banking are registered business
names of Lloyds Bank Corporate Markets plc in Jersey and the Isle of Man.
Lloyds and Lloyds Bank are trading names of Lloyds Bank Corporate Markets
Wertpapierhandelsbank GmbH and is a wholly-owned subsidiary of Lloyds Bank
Corporate Markets plc. Lloyds Bank Corporate Markets Wertpapierhandelsbank GmbH
has its registered office at Thurn-und-Taxis Platz 6, 60313 Frankfurt, Germany.
The company is registered with the Amtsgericht Frankfurt am Main, HRB 111650.
Lloyds Bank Corporate Markets Wertpapierhandelsbank GmbH is supervised by the
Bundesanstalt für Finanzdienstleistungsaufsicht.
Halifax is a division of Bank of Scotland plc.
HBOS plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in
Scotland no. SC218813.
Lloyds and Lloyds Living are trading names of Citra Living Limited. Citra
Living Limited is part of Lloyds Banking Group but is not regulated by the
Financial Conduct Authority or the Prudential Regulation Authority. Registered
office: X+Why, 100 Embankment, Cathedral Approach, Salford, M3 7FB.Registered
in England and Wales No. 13120129.
This e-mail (including any attachments) is private and confidential and may
contain privileged material. If you have received this e-mail in error, please
notify the sender and delete it (including any attachments) immediately. You
must not copy, distribute, disclose or use any of the information in it or any
attachments. Telephone calls may be monitored or recorded.
Your personal information will be held by one of the brands which is part of
the Lloyds Banking Group. It is important that you understand how the personal
information you give us will be used. Therefore, we strongly advise that you
read our Full Privacy Notice for the brand relevant to you, which you can find
at Privacy - Lloyds Banking Group
plc<https://www.lloydsbankinggroup.com/privacy.html>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN