Had a similar problem.  I used this solution.

http://billlalonde.tripod.com/back/stup006.htm

On Monday, December 14, 2020, Seymour J Metz <[email protected]> wrote:

> Yes - you only have one level of expansion.
>
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
>
> ________________________________________
> From: IBM Mainframe Discussion List [[email protected]] on behalf
> of Paul Gilmartin [[email protected]]
> Sent: Sunday, December 13, 2020 3:43 PM
> To: [email protected]
> Subject: Re: JCL PARM issue
>
> On Sun, 13 Dec 2020 19:46:34 +0000, Seymour J Metz wrote:
>
> >You have a double substitution. Take the parameter you want to pass,
> double the apostrophes, put apostrophes around it, double the apostrophes
> and put apostrophes around that. The way you coded it, the first exapnsion
> there is a blank outside of the apostrophes, making the rest of the string
> a comment.
> >
> >Maybe it's time for an RFE to include comments in the substitution JCL.
> >
> It's time for an RFE for the equivalent of HLASM's DOUBLE BIF.  No "Maybe".
>
> Does PARMDD handle this better?
>
> >________________________________________
> >From:  Ze'ev Atlas
> >Sent: Sunday, December 13, 2020 2:31 PM
> >
> >What am I doing wrongI have doubled every single quote within the string,
> that should be:'''abc�*' PCRE2.TESTLIB(GRPIN)''
> >|||�    |�                    ||||+-----+
>  |||+----------------------------+|+------------------------------+where
> the external quotes are the enclosing quotes.So the actual PARM field
> looked like:
> >// EXEC RUNGREP,TEST='------------------ Test 15 -----------------',//
> PARM1='''''abc�*'' PCRE2.TESTLIB(GRPIN)'''
> >++TEST8 EXEC PGM=PCR2GREP,                     ++      PARM=&PARM1
>                                            IEFC653I SUBSTITUTION JCL -
> PGM=PCR2GREP,PARM=''abc�*'
> >Why does JCL drop the rest of PARM1?Thank you all
>
> -- gil
>
> ----------------------------------------------------------------------
> 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
>


-- 
OREXXMan
JCL is the buggy whip of 21st century computing.  Stabilize it.
Put Pipelines in the z/OS base.  Would you rather process data in move mode
or locate mode?
IBM has been looking for an HLL for program products; REXX is that language.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to