FILEMODE

FILEMODE specifies whether DB2, SdU, and STL files created by using OPEN OUTPUT statements will have large-format or small-format metadata (internal control information), which affects their maximum size.

Read syntax diagramSkip visual syntax diagram
FILEMODE option syntax

             .-LARGE-.     
>>-FILEMODE(-+-SMALL-+-)---------------------------------------><

Default is: FILEMODE(LARGE)

Abbreviation is: FM(L|S)

LARGE
Specifies that OPEN OUTPUT statements for DB2, SdU, and STL files create large-format files. SdU and STL large-format files can exceed 2 GB. DB2 sequential and relative large-format files have a maximum record count of (2 ** 63) - 1. DB2 indexed files have no COBOL limit.
SMALL
Specifies that OPEN OUTPUT statements for DB2, SdU and STL files create small-format files. SdU and STL small-format files have a maximum size of 2 GB. DB2 sequential and relative small-format files have a maximum record count of (2 ** 31) - 1. DB2 indexed files have no COBOL limit.

You can process large-format and small-format files with either 32-bit or 64-bit COBOL for AIX programs. File processing is not sensitive to the value of the ADDR compiler option.

Restriction: DB2 files that will interoperate with CICS TXSeries must be created with FILEMODE(SMALL) in effect.

FILEMODE does not affect the processing of line-sequential, Encina SFS, or RSD files. These files do not have a maximum COBOL size limit.

related references  
DB2 file system  
SdU file system  
STL file system  
File-system summary  
ADDR  
STL and SdU files that are larger than 2 GB  
Compiler limits (COBOL for AIX Language Reference)