Thanks! That was one of the variations I tried. Fails on a JCL error:
STMT NO. MESSAGE
4 IEFC620I UNIDENTIFIABLE CHARACTER u ON THE EXEC STATEMENT
4 IEFC620I UNIDENTIFIABLE CHARACTER t ON THE EXEC STATEMENT
4 IEFC620I UNIDENTIFIABLE CHARACTER c ON THE EXEC STATEMENT
4 IEFC620I UNIDENTIFIABLE CHARACTER c ON THE EXEC STATEMENT
4 IEFC620I UNIDENTIFIABLE CHARACTER v ON THE EXEC STATEMENT
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Steve Comstock
Sent: Saturday, January 02, 2010 5:38 PM
To: [email protected]
Subject: Re: Basic question on passing JCL set symbol to proc
Charles Mills wrote:
> I apologize for a very basic question. I'm a developer; not a PROC guy.
>
>
>
> I've got a PROC that says
> //CBCC PROC INFILE=,
> // CRUN=,
> // CPARM=,
>
> ..
>
> and
>
> //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.
>
>
>
> How do I pass a set symbol as a parm to a proc?
>
//COMPMAIN EXEC CBCC,CPARM=&OPTS
should do it, I would think.
----------------------------------------------------------------------
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