ヒープからバイト単位でデータを読み取ります。
call "CBL_READ_VFILE" using by value heap-id
                                     heap-ref
                                     heap-length
                      by reference   heap-buffer
                      returning      status-code
 
	 | 呼び出しプロトタイプ使用時 (「説明の読み方」を参照) | PIC | |
|---|---|---|
| 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 | 「説明の読み方」を参照。 | 
説明:
データが書き込まれていないヒープ領域の読み取りを試みると、バッファーには不明なデータが返されます。