|  CALL "M$SIZE" USING memAddress               GIVING memSize | 
| memAddress  | USAGE HANDLE | Specifies the handle to the memory region. Note - for compatibility reasons this item may also be defined as USAGE POINTER. In this case the program must be compiled either with -ca or -cp options. With -ca POINTER is translated to HANDLE. With -cp POINTER is a real pointer that can be shared with external C routines. | 
| *> define msize as pic 9(2) and mem1 usage handle call "m$alloc" using 8, mem1 call "m$size" using mem1 giving msize if msize not = 8    display "Error allocating memory" end-if |