/* GetEnv.Rexx. Returns the contents of the named global environment variable. Ignores any argument except the first one. */ name = arg( 1 ) var = "" if open( file, 'ENV:' || name, read ) then do var = readln( file ) call close file end return var