skip to main content

Library Routines : C$ENVMAP

C$ENVMAP
The C$ENVMAP library routine saves or restores a subset of environment variables. Information is saved to a stack, the routine can be called recursively.
Syntax:
 CALL "C$ENVMAP" USING opCode 
Parameters:
Examples:
Example - Backup the environment, then change one variable temporarily, then restore the value from backup
set environment "tempdatapath" to "/myapp/data/temp1"
call "c$envmap" using 1 *> save environment
set environment "tempdatapath" to "/myapp/data/temp2"
accept path-to-temp-data from environment "tempdatapath"
call "c$envmap" using 0 *> restore environment
accept path-to-temp-data from environment "tempdatapath"

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left