Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to read environment variables using aix and rexx

241 views
Skip to first unread message

Sheila Barlow

unread,
Sep 1, 1998, 3:00:00 AM9/1/98
to
Hello,
Help meeeeeeeeeeee. I need to know how i can read environment
variables in rexx. I am using REXXSAA 4.00 01 Nov 1993. Is ther an
update if there is can someone point me to it.. Thank you


hessling mark

unread,
Sep 1, 1998, 3:00:00 AM9/1/98
to
Sheila Barlow (she...@us.ibm.com) wrote:
: Hello,

: Help meeeeeeeeeeee. I need to know how i can read environment
: variables in rexx. I am using REXXSAA 4.00 01 Nov 1993. Is ther an
: update if there is can someone point me to it.. Thank you

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

Bill P

unread,
Sep 1, 1998, 3:00:00 AM9/1/98
to
Sheila Barlow wrote:
> Hello,
> Help meeeeeeeeeeee. I need to know how i can read environment
> variables in rexx. I am using REXXSAA 4.00 01 Nov 1993. Is ther an
> update if there is can someone point me to it.. Thank you

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.

Ian Collier

unread,
Sep 1, 1998, 3:00:00 AM9/1/98
to
In article <6shold$fc5$1...@dove.qut.edu.au>, M.Hes...@qut.edu.au wrote:
>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'.

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

0 new messages