Previous Topic: #FINISH Status CodesNext Topic: #FREESTG Parameters


#FREESTG—requests that the system release variable storage

The #FREESTG statement requests that the system release all or a part of a block of variable storage. The storage to be released may have been acquired with a #GETSTG request in the issuing task or by another task running on the same terminal as the issuing task. A partial release is valid only for user storage; shared storage must be freed in its entirety.

The #FREESTG request is unconditional; any runtime error will result in an abend of the issuing task.

IDMSDB--#FREESTG

►►─┬─────────┬────────────────────────────────────────────────────────────────►
   └─ label ─┘

 ►─── #FREESTG ─┬─ ADDR=storage-address ─┬────────────────────────────────────►
                └─ STGID=storage-id ─────┘

 ►─┬─────────────────────┬────────────────────────────────────────────────────►◄
   └─ ,NEWLEN=newlength ─┘