
- Rexx Tutorial
- Rexx - Home
- Rexx - Overview
- Rexx - Environment
- Rexx - Installation
- Rexx - Installation of Plugin-Ins
- Rexx - Basic Syntax
- Rexx - Datatypes
- Rexx - Variables
- Rexx - Operators
- Rexx - Arrays
- Rexx - Loops
- Rexx - Decision Making
- Rexx - Numbers
- Rexx - Strings
- Rexx - Functions
- Rexx - Stacks
- Rexx - File I/O
- Rexx - Functions For Files
- Rexx - Subroutines
- Rexx - Built-In Functions
- Rexx - System Commands
- Rexx - XML
- Rexx - Regina
- Rexx - Parsing
- Rexx - Signals
- Rexx - Debugging
- Rexx - Error Handling
- Rexx - Object Oriented
- Rexx - Portability
- Rexx - Extended Functions
- Rexx - Instructions
- Rexx - Implementations
- Rexx - Netrexx
- Rexx - Brexx
- Rexx - Databases
- Handheld & Embedded
- Rexx - Performance
- Rexx - Best Programming Practices
- Rexx - Graphical User Interface
- Rexx - Reginald
- Rexx - Web Programming
- Rexx Useful Resources
- Rexx - Quick Guide
- Rexx - Useful Resources
- Rexx - Discussion
Rexx - getenv
This method returns the value of an environment variable on the system.
Syntax
getenv(var)
Parameters
var − This the name of the environment variable for which the value needs to be displayed.
Return Value
This method returns the value of an environment variable on the system.
Example
/* Main program */ options arexx_bifs say getenv('PATH')
When we run the above program we will get the following result. The following program is a sample output, this output will vary from system to system.
Output
C:\ProgramData\Oracle\Java\javapath; C:\Python27\; C:\Python27\Scripts; C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Windows\System32\WindowsPowerShell\v1.0\; C:\Program Files \Intel\WiFi\bin\; C:\Program Files\Common Files\Intel\WirelessCommon\; C:\Program Files\Microsoft SQL Server\110\Tools\Binn\; C:\PROGRA~2\Groovy\GROOVY~1.5\bin; C:\Program Files (x86)\nodejs\; C:\Program Files\MySQL\MySQL Server 5.7\bin; C:\Program Files\MongoDB\Server\3.2\bin; C:\Program Files (x86)\Microsoft SQL Server\110\ Tools\Binn\; C:\Program Files\Microsoft SQL Server\110\DTS\Binn\; C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\; C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\; C:\Program Files\TortoiseGit\bin; C:\Program Files\Microsoft\Web Platform Installer\; C:\.lein\bin; C:\Windows\Microsoft.NET\Framework\v4.0.30319; C:\Program Files\Java\jdk1.7.0_79\bin; C:\Program Files\Java\jre7\bin; C:\Program Files\Git\cmd; C:\Users\Administrator\AppData\Roaming\npm; C:\Program Files\erl7.3\bin; C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\; C:\Program Files\rexx.org\Regina; C:\RexxTrans; D:\rexxxml100\rexxxml\win32; D:\libxslt-1.1.17.win32\libxslt-1.1.17.win32\bin; D:\libxml22.6.26.win32\libxml2-2.6.26.win32\bin; D:\iconv-1.9.2.win32\iconv-1.9.2.win32\bin; D:\zlib1.2.3.win32\zlib-1.2.3.win32\bin; D:\rexxtrans18w32; C:\Program Files\ooRexx; D:\rexxxml100\rexxxml
rexx_regina.htm
Advertisements