Reads bytes from a heap.
call "CBL_READ_VFILE" using by value heap-id
heap-ref
heap-length
by reference heap-buffer
returning status-code
| Using call prototype (see Key) | Picture | |
|---|---|---|
| heap-id | cblt-vfile-handle. | pic x(2) comp-5. |
| heap-ref | cblt-x4-comp5. | pic x(4) comp-5. |
| heap-length | cblt-x4-comp5. | pic x(4) comp-5. |
| heap-buffer | pic x(n). | pic x(n). |
| status-code | See Library Routines - Key. |
Comments:
Trying to read data from an area of the heap which has not yet been written results in indeterminate data being returned to the buffer.