F$getenv is a lexical function available since OpenVMS 6.1 on the Alpha platform. It allows you to retrieve the value of environment variables set at the boot level.
The module $STENVDEF in sys$library:sys$starlet_c.tlb contains a list of all known item codes. As of the time of this writing these were:
A short command-file to demonstrate the usage of f$getenv in DCL, produces output like the following:
AUTO_ACTION: HALT BOOT_DEV: SCSI 0 6 0 0 0 0 FLAMG-IO BOOTCMD_DEV: DKA0 BOOTED_DEV: SCSI 0 6 0 0 0 0 FLAMG-IO BOOT_FILE: BOOTED_FILE: BOOT_OSFLAGS: 0,0 BOOTED_OSFLAGS: 0,0 BOOT_RESET: ON DUMP_DEV: ENABLE_AUDIT: ON LICENSE: SU CHAR_SET: LANGUAGE: 6 TTY_DEV: 0 SYSROOT: <not valid on this node> BTFLAGS: <not valid on this node>

Comments to: Martin P.J. Zinser
Last modified: 20020628