CALL "C$ENVMAP" USING opCode                        [status]  | 
opCode  | Any numeric data item or literal  | Specifies the operation to be performed. Valid values are: 1 	Save variables 0 	Restore variables  | 
status  | PIC S99 COMP-1  | Receives the function status: 1 	Operation completed successfully. 0 	Operation failed.  | 
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" *> path-to-temp-data will be /myapp/data/temp2 call "c$envmap" using 0 *> restore environment accept path-to-temp-data from environment "tempdatapath" *> path-to-temp-data will be /myapp/data/temp1  |