Available memory (Micro Focus COBOL On CICS on Open Systems only)

Micro Focus COBOL allows you to use the -l runtime switch to set the amount of available memory for the Micro Focus COBOL runtime system (RTS). Unless all available memory has been used, the RTS performs logical EXEC CICS® CANCELs, where a logical EXEC CICS CANCEL flushes all file buffers but does not release memory. The RTS loads programs that have been logically canceled in preference to reloading from disk; the memory is used as a form of cache.

This can give performance advantages, but CICS cannot force the memory to be freed. If you want to force a reload from disk in order to pick up a new copy of a program, for example, you must set the memory switch to zero in the environment file in your region directory (for example COBSW=-l0) to force the run time to reload from disk.

When COBSW is set to +l0, refer to the Technote: http://www-1.ibm.com/support/docview.wss?rs=175&context=SSAL2T&dc=DB520&q1=COBSW&uid=swg21266355&loc=en_US&cs=utf-8&lang=en

Alternatively, you can force a reload from disk for each separate program by using CEMT SET PROGRAM(program_name) NEWCOPY or CEMT SET PROGRAM(program_name) PHASEIN, where program_name corresponds to the definition that is in the Program Definitions (PD).

If you experience problems when you run Micro Focus COBOL transactions after using NEWCOPY, try resubmitting the transaction to overcome the problem.