HiLMAs reference
Back

Miscellaneous Instructions

Next

MEMFREE

MEMFREE pointer,SIZE=num-bytes

 

Description

Deallocate memory previously dynamically allocated. Pointer must point to start the area allocated with MEMALLOC. SIZE should be the same used with MEMALLOC. If you don't use this statement, memory allocated with MEMALLOC is anyway deallocated at the end of the program.

This statement recall the appropiate operating system macro to release the storage previously allocated by the program. If this recall is successfull the Hilmas variable $RCCALL is 0.

Note that actually this statement is not yet implemented for CICS environment.

 

Parameter specifications

Parameter Name Mode Type coding Remark
1 pointer Input Integer A or F  
  SIZE= Input

Integer

F or H or const. Length in bytes

 

Examples

 


Back Start Next
MEMALLOC Top VAR2REXX