Allocating and freeing virtual storage (GETMAIN, FREEMAIN and STORAGE macros)

The GETMAIN macro and the STORAGE macro with the OBTAIN parameter allocate virtual storage. The FREEMAIN macro and the STORAGE macro with the RELEASE parameter free virtual storage.

Most of the functions of GETMAIN, FREEMAIN, and STORAGE are available to all users. You can find information on these functions in z/OS MVS Programming: Assembler Services Guide. However, some of the GETMAIN, FREEMAIN, and STORAGE functions are available only to authorized programs. This information provides help in the following areas: