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?

 

Thanks and apologies in advance.

 

Charles Mills




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

Reply via email to