This routine reads data from a map object.
Specification
01 heap-ID PIC 9(4) COMP-5. 01 relative-address-in-heap PIC 9(4) COMP-5. 01 data-length PIC 9(4) COMP-5. 01 string-storage-area PIC X(n). 01 status-code PIC S9(4) COMP-5.
CALL "CBL_READ_VFILE" USING BY VALUE heap-ID relative-address-in-heap data-length BY REFERENCE string-storage-area RETURNING status-code.
Interface
Specifies the heap-ID.
Specifies the relative address in a heap.
Specifies the length of data to be read.
Specifies the area to store the read string.
Return code
The return code is set in the status-code specified in the RETURNING clause.
0: Successful
Other than 0: Failure