We use the one of my INSTASM programs to do a crude version of this

http://home.clara.net/andywrobertson/mvsinstasm.html

Though its not among the functions documented there you might like to
downloasd this and look at the INSTSET/INSTGET section of the INSTDOC
member.

The facility does not create a POSIX environment variable but just a single
string held in the name/token pairs of the job.

You have to do fancy parsing yourself but you can split the single string
up into keyword=value pairs and write a utility to update single
keyword/value pairs easily enough.

Andy R


.............................................

What I would like, or at least could use, would be some "new" JCL statement
or function which would create an POSIX environment variable which would be
"global" to the job. This would let me use the oe_env_np() UNIX call in my
program. This would be conceptually similar to an EXEC, except that it
wouldn't really run a program. Perhaps an example:

// SET JCLVAR=ABC
// EXPORT VAR=&JCLVAR
//* Environment variable now contains "ABC"
// EXPORT VAR=${VAR}CDEF
//* Environment variable now contains "ABCCDEF"
//JS010 EXEC PGM=MYPROG,PARM='VAR'
//* I pass in the name of the environment variable
//* which I use to get the actual parm
//*

**********************************************************************
This email is confidential and may contain copyright material of the John Lewis 
Partnership. 
If you are not the intended recipient, please notify us immediately and delete 
all copies of this message. 
(Please note that it is your responsibility to scan this message for viruses). 
Email to and from the
John Lewis Partnership is automatically monitored for operational and lawful 
business reasons.
**********************************************************************

John Lewis plc
Registered in England 233462
Registered office 171 Victoria Street London SW1E 5NN
 
Websites: http://www.johnlewis.com 
http://www.waitrose.com 
http://www.greenbee.com
http://www.johnlewispartnership.co.uk
 
**********************************************************************

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