Problem:
A program encounters file status 9/007 (which means "disk space exhaused") on a record sequential file open for output. At the point of error, the file size is 512 bytes beyond 1 GB that is, 1073741312 bytes.
Resolution:
This file size limitation is not imposed by Micro Focus. It is probably imposed by the UNIX system.
The default ulimit on AIX 5.2 is 2097151, as can be seen by entering the following command:
ulimit
This amount 2097151 is specified in units of 512-byte blocks. In bytes the value is 2097151 * 512 = 1073741312. That's one block short of exactly one gig.
2^30 = 1073741824 = 1 gig
So, the default AIX ulimit is 1 GB even on 64-bit systems. This seems low by today's standards. This default 2097151 might even be the "hard" limit, and if so, root privileges are required to set it higher. For more information on this aspect of the UNIX operating system, see the appropriate man pages or documentation, or contact the OS technical support department.
For UNIX versions other than AIX, the "ulimit" man page and command might reveal different values and different block sizes, but is probably still a limiting factor in file size, and must be checked if status 9/007 is encountered.
#netexpress
#COBOL
#ServerExpress
#AcuCobol
#RMCOBOL