To add to the fun

// SET B=' '                   
// SET CD='cd'                 
// SET SHELL1B=&CD&B&CPPOBJ    

fails with 

40 IEFC620I UNIDENTIFIABLE CHARACTER c ON THE SET STATEMENT  

They don't make it easy.

Charles

On Fri, 24 Oct 2025 12:39:24 -0500, Charles Mills <[email protected]> wrote:

>I have JCL that includes the following sequence
>
> //    SET CPPOBJ='/u/userid/CertRept/Obj/'
>...
>// SET SHELL1B='cd &CPPOBJ' 
>...
>//BPXARCH  EXEC PGM=BPXBATCH,COND=(4,LT), 
>// PARM='SH&B&SHELL1B;...
>
>The BPXBATCH cd fails because &SHELL1B has the literal value cd &CPPOBJ -- in 
>other words, the path name was not substituted for the symbol name &CPPOBJ.
>
>Is there any way to set a symbol to a string that includes the value of a SET 
>symbol?
>
>If not, yeah, I can think of several possible workarounds but this seems like 
>a pretty gigantic shortcoming to me. The exclamation "Really?" comes to mind.
>
>I see an IBM-MAIN post by the sorely missed @Peter Relson from Dec 4, 2021, at 
>10:05 AM with a subject of "Re: Trying to use long parm= in started task" that 
>addresses this issue but I don't see a resolution. Is there one?
>
>Charles
>
>----------------------------------------------------------------------
>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