You should be able to use:
myvar = Value('MYENVVAR',,'ENVIRONMENT')
The only thing I'm not sure about is whether 'ENVIRONMENT' is correct for
REXX/6000 or whether it might be some other constant, like 'SYSTEM'. The
documentation should define the name of the default environment.
Cheers, Mark
------------------------------------------------------------------------
Mark Hessling Email: M.Hes...@qut.edu.au
PO Box 203 http://www.lightlink.com/hessling/
Bellara AUTHOR of | MAINTAINER of
QLD 4507 THE | PDCurses
Australia Rexx/SQL | Regina
Member of RexxLA: http://www.rexxla.org/
------------------------------------------------------------------------
See the VALUE() function. It's format will depend on which operating
system you're on (can't tell from the version number you gave).
For OS/2, you would use:
EnvVar = VALUE('PATH',,'OS2ENVIRONMENT')
For IBM PC-DOS 7 you would use:
EnvVar = VALUE('PATH',,'DOSENVIRONMENT')
For IBM Objrect REXX for Windows you would use:
EnvVar = VALUE('PATH',,'ENVIRONMENT')
Other systems will have different values, so see the documentation for
the VALUE() function.
Bill P.
>The only thing I'm not sure about is whether 'ENVIRONMENT' is correct for
>REXX/6000 or whether it might be some other constant, like 'SYSTEM'.
It could be 'UNIXENVIRONMENT'.
--
---- Ian Collier : i...@comlab.ox.ac.uk : WWW page (including REXX section):
------ http://www.comlab.ox.ac.uk/oucl/users/ian.collier/imc.html
New to this group? Answers to frequently-asked questions can be had from
http://rexx.hursley.ibm.com/rexx/ .