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.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Ze'ev Atlas [[email protected]]
Sent: Sunday, December 13, 2020 2:31 PM
To: [email protected]
Subject: JCL PARM issue

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

Ze'ev Atlas


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