Specifying branch entry to GETMAIN and FREEMAIN services

In addition to SVC entry available to programs in problem state, branch entry is available for authorized programs using the GETMAIN and FREEMAIN macros. Thus, authorized programs that cannot issue SVCs can still use GETMAIN and FREEMAIN.

Two types of branch entry are available for GETMAIN and FREEMAIN: BRANCH=YES and BRANCH=(YES,GLOBAL). BRANCH=YES allows both local (private area) and global (common area) storage to be obtained or released. BRANCH=(YES,GLOBAL) allows only global storage to be obtained or released. BRANCH=(YES,GLOBAL) requests are limited to the following global subpools: The common service area (CSA) subpools 227, 228, 231, and 241, and the system queue area (SQA) subpools 226, 239, 245, 247, and 248.

See the BRANCH parameter descriptions for GETMAIN and FREEMAIN in z/OS MVS Programming: Authorized Assembler Services Reference EDT-IXG for information on how to code the two types of branch entries.