Problem:
Using byte stream file handling and cbl_read_file is not returning any data.
Return-code = 0 on the cbl_open_file and receives Return_Code = 0 on the cbl_read_file
but no data is received into his input buffer-
Resolution:
One of the parameters for the cbl_read_file is flags.
This parameter can take the following values:
0 Standard read
128 Return the current file size in file-offset
Need to make sure after the initial read to obtain the size of the file that the flags is set to 0 to do a standard read. Setting the flags to 0 resolved the no data returned in the input buffer issue.