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.
Thanks and apologies in advance.
Charles Mills
--
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
z/OS Application development made easier
* Our classes include
+ How things work
+ Programming examples with realistic applications
+ Starter / skeleton code
+ Complete working programs
+ Useful utilities and subroutines
+ Tips and techniques
==> Ask about being added to our opt-in list: <==
==> * Early announcement of new courses <==
==> * Early announcement of new techincal papers <==
==> * Early announcement of new promotions <==
----------------------------------------------------------------------
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