Chapter 4-8: Runtime Subroutine's and Predefined Processes
.ENV GET ENV (ALL)
This subroutine returns the value of all environment variables. Available in Release 5.4.7 & higher (except for 6.0.0)
Usage:

Description:
This subroutine returns the value of all environment variable. No Parameters are required.The --- ENV file will be populated with all environment variables.To get the value of a client constant, see .CLIENT GET CONSTANT.