Returns the specified equivalence string from theenvironment of the PV-WAVE process.
OpenVMS Users: OpenVMS does not directly support the concept of environment variables. Instead, it is emulated in the manner described below, which allows you to use GETENV portably between UNIX and OpenVMS:
HOME,
TERM,
PATH
, or USER
, an appropriate response is generated. This mimics the most common UNIX environment variables.
PRINT, 'Current shell is: ', GETENV('SHELL')
IF !Version.platform EQ 'VMS' THEN $ OPENR, u, GETENV('WAVE_DIR')+ $ '[data]heartbeat.dat', /Get_Lun $ ELSE $ OPENR, u, '$WAVE_DIR/data/heartbeat.dat', /Get_Lun
PRINT, 'Home Drive is: ', GETENV('HOMEDRIVE')
OPENR, u, GETENV('WAVE_DIR')+ $ '\data\heartbeat.dat', /Get_lun