The example of the #GETSTG statement shown below performs the following functions:
Specifies that the requested storage area is to be shared by any task in the DC/UCF system, that it will contain short-term storage allocated from the top of the storage pool, and that it will not be available for use by subsequent tasks
Builds the parameter list, SYSPLIST (default), in the variable storage area
Specifies the length of the new storage area in register 2
Specifies that every byte in the storage area be initialized to blanks
Uses register 1 (default) to receive the address of the acquired storage from the system
Specifies the ID of the storage area in register 9
Specifies that control will be returned to the routine labeled NOSTGRTN if the amount of available storage is insufficient to satisfy the request, otherwise, any runtime error will result in an abend of the issuing task