On Sat, 2 Jan 2010 17:21:27 -0800, Charles Mills wrote:
>
>//COMPILE EXEC PGM=CCNDRVR,REGION=&CREGSIZ,
>// PARM=('&CRUN/CXX &CPARM')
>
>I had the bright idea of coding a SET symbol
>
>// SET OPTS='LSE(/u/tcc001/v300),NOTEMPL,OE,OBJ,NOARG'
>
>And then invoking the proc with
>
>//COMPMAIN EXEC CBCC,CPARM='&OPTS'
>
>Unfortunately, all the program sees is effectively PARM='/CXX &OPTS" - a
>literal "&OPTS" rather than my set symbol. I've tried a couple of variations
>but to no avail.
>
I might try (although I'm much more likely to suggest you try):
// SET OPTS='LSE(/u/tcc001/v300),NOTEMPL,OE,OBJ,NOARG',
Q=''''
And then invoking the proc with
//COMPMAIN EXEC CBCC,CPARM=&Q&OPTS&Q
This is still guaranteed to fail if the value assigned to &OPTS
contains an apostrophe. You might have to double it again.
I hate JCL!
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html