TEMPMEM Environment Variable (C)

This environment variable determines whether temporary files are created as memory files or as disk files. Temporary memory files are not available to C++ programs.

TEMPMEM cannot be set from within an executing program. To use TEMPMEM in a program, set its value in the environment before the program starts. For example, the following command enables memory file support:

SET TEMPMEM=on

If the value specified is on (in upper-, lower-, or mixed case), and you build with the Language Option lang(memoryfiles), the temporary files will be created as memory files. If TEMPMEM is set to any other value, the temporary files will be disk files. If you specify lang(memoryfiles), and TEMPMEM is not on, your program will end with an error when it tries to open a memory file.



Application Run-Time Environment Variables


Set Windows Run-Time Environment Variables
Set OS/2 Run-Time Environment Variables