Continuation should be via backslash at end of line.  Break long “ … “ into two 
parts, first part on line 1 and second part on line 2.


SH echo "mkdir -p /some/very/long/dir &&&& " \

   " chmod -R 750 /some/very/long/dir" | su



Peter

From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Radoslaw Skorupka
Sent: Wednesday, August 26, 2026 10:21 AM
To: [email protected]
Subject: BPXBATCH (again) and continuation


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 ""



--

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
  • ... Radoslaw Skorupka
    • ... Philippe Leite
      • ... Styles, Andy (CIO Enabling Services - Core Infrastructure Platform)
    • ... Farley, Peter
    • ... Sri Hari Kolusu
    • ... Radoslaw Skorupka
    • ... Paul Gilmartin
    • ... Paul Gilmartin
      • ... Radoslaw Skorupka
    • ... Paul Gilmartin
    • ... Dana Mitchell
      • ... Kirk Wolf
        • ... Tony Harminc
        • ... Radoslaw Skorupka

Reply via email to