> // SET ACTVAR=&ACTION

Should work.

You don't need the apostrophes in this case, although they are valid. The &Q 
trick is for introducing an apostrophe into thr valur and should not work for 
delimiting the values.


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

________________________________________
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Charles Mills [charl...@mcn.org]
Sent: Thursday, December 2, 2021 2:48 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Trying to use long parm= in started task

Does

// SET ACTVAR=&ACTION

work? Or do you indeed need to quote &ACTION? (If you do, I heartily endorse 
@Gil's &Q trick. I have used that.)

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Paul Gilmartin
Sent: Thursday, December 2, 2021 9:37 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Trying to use long parm= in started task

On Thu, 2 Dec 2021 10:29:00 +0000, Seymour J Metz  wrote:

>I believe that the problem is a combination of an error in your JCL and an 
>error in the Converter. &ACTION is a symbolic parameter but not a symbol. Try
>
>// SET ACTIONVAR='&ACTION'
>...
That doesn't work: 
<https://www.ibm.com/docs/en/zos/2.5.0?topic=jcl-coding-symbols-in-apostrophes>

You can code symbols in apostrophes on [only --gil] the following keywords:
    The DD statement AMP parameter
    The DD statement PATH parameter
    The DD statement SUBSYS parameter
    The EXEC statement ACCT parameter
    The EXEC statement PARM parameter.

Not SET.  I believe the following works:

// SET Q=''''
// SET ACTIONVAR=&Q&ACTION&Q

Is this well-documented?

I hate JCL!

Does "ACTIONVAR" have too many characters?

>//PARMDD DD  *,SYMBOLS=JCLONLY
>SH /u/mqweb3/conf/ccc.sh aa &T2 x  &ACTIONVAR y &ACTIONVAR z
>/*

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to