April 1, 1981
RELEASING ALLOCATEDSTORAGE Storage allocated by the GETMAIN macro instruction may be released in
any of the following ways:
1. A specific block of such storage may be released by means of the
FREEMAIN macro instruction.
2. TheSTRINIT macro instruction releases
any previous GETMAIN requests.
all storage allocated by
3. Almost allCMS commands issue a STRINIT macro instruction. Thus,
executing almost anyCMS command will cause all GETMAIN storage to
be released.
storage allocated by theDMSFREE macro instruction may be released in
any of the followinq ways:
1. A specific block of such storage may be released by means of theDMSFRET macro instruction.
2. Whenever any user routine orCMS command abnormally terminates (so
that the routineDMSABN is entered), and the abend recovery
facility of thesystem is invoked, all DMSFREE storage with TIPE=USER is released automatically.
Except in the case of abend recovery, storage allocated by theDMSFREE macro is never released automatically by the system. Thus,
storage allocated by means of this macro instruction should always be
released explicitly by means of theDMSFRET macro instruction. DMSFREE SERVICE ROUTINES The DMSFRES macro instruction is used by the system to request certain
free storage management services.
The format of theDMSFRES macro is: ,..---- I [label] I I I I I I I DMSFRES INIT1
INIT2
CHECKCKON CKOFF UREC CALOC r r" II I BALR II L L J.J
252IBM VM/370 system Programmer's Guide
RELEASING ALLOCATED
any of the following ways:
1. A specific block of such storage may be released by means of the
FREEMAIN macro instruction.
2. The
any previous GETMAIN requests.
all storage allocated by
3. Almost all
executing almost any
be released.
storage allocated by the
any of the followinq ways:
1. A specific block of such storage may be released by means of the
2. Whenever any user routine or
that the routine
facility of the
Except in the case of abend recovery, storage allocated by the
storage allocated by means of this macro instruction should always be
released explicitly by means of the
free storage management services.
The format of the
INIT2
CHECK
252