Problem:
Byte stream I/O routine CBL_OPEN_FILE failes with error 194 when the file is large
Resolution:
Setting ACCESS-MODE = 65 corrects the problem - the call will fail if the underlying operating system does not support large files
Byte Stream IO calls work with files up to 4 Gb, Over 4 Gb there is a requirement to set 1 of 2 flags to get the open to work:
- bit h"40" of the open-mode field (second parameter) or;
- bit h"10" of the sharing mode field (third parameter).
Using method 1 you will get an error if the open is attempted on a system which does not support 64 bit file systems (e.g. Windows 95).
Method 2 will give you a successful open in all operating systems, but tells the run-time that no locking calls will be attempted on the file. Any call to e.g. CBL_GET_LOCK will result in an error if the file has been opened with this bit set.
#netexpress
#RMCOBOL
#ServerExpress
#COBOL
#AcuCobol