"McKown, John" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>..
..
> > -----Original Message-----
> > From: IBM Mainframe Discussion List 
> > [mailto:[EMAIL PROTECTED] On Behalf Of Kirk Wolf
> > Sent: Wednesday, June 13, 2007 8:10 AM
> > To: [email protected]
> > Subject: Re: Read JCL Symbols from a program?
> > 
> > 


> > Example:
> > 
> > // SET PARM1=NEW
> > // EXEC PROC=FOO,PARM2=OLD
> > 
> > In this example, while executing the FOO proc, you have JCL symbols 
> > PARM1 and PARM2.
> > 
> > My question is this:  does anyone know a way for a program to 
> > read the 
> > current JCL symbols?
> > It could be that all of this information is washed away by 
> > the converter 
> > interpreter....
> > 
> > Kirk Wolf
> > Dovetailed Technologies
> 
> I am fairly sure that the information is indeed "washed away" by the
> converter and not kept in any kind of control block that you can
> __easily__ access. If you really wanted to, you might be able to get
> hold of the JESJCL dataset like SDSF does and parse that out yourself.
> <shiver> I looked and the information is NOT in the $INTTEXT spool
> dataset.
> 
> --

You can, of course, pass the required symbols as parm to the program:
//PGM EXEC PMG=PROG1,PARM='SYMBOL1=&SYMBOL1,SYMBOL2=&SYMBOL2,...."'

Kees.
**********************************************************************
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain
confidential and privileged material intended for the addressee
only. If you are not the addressee, you are notified that no part
of the e-mail or any attachment may be disclosed, copied or
distributed, and that any other action related to this e-mail or
attachment is strictly prohibited, and may be unlawful. If you have
received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. Koninklijke Luchtvaart
Maatschappij NV (KLM), its subsidiaries and/or its employees shall
not be liable for the incorrect or incomplete transmission of this
e-mail or any attachments, nor responsible for any delay in
receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
Dutch Airlines) is registered in Amstelveen, The Netherlands, with
registered number 33014286 
**********************************************************************

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