Home | OS/2 Software | Rexx | Get Environment Variables

Get Environment Variables

Contributed by: Wayne Swanson

Just an example of how to retrieve and what types of environment variables are available.


 


/* Some possible environment variable choices */
/*                                            */
/* path dpath classpath prompt runworkplace   */
/* temp tmp rxqueue beginlibpath endlibpath   */
/* comspec                                    */


/* Examples:                                  */
path      = value( 'path', , 'OS2ENVIRONMENT')
dpath     = value( 'dpath', , 'OS2ENVIRONMENT')
classpath = value( 'classpath', , 'OS2ENVIRONMENT')