Is it possible to build files with different maximum file size limits in RM/Cobol?

 
0 Likes

Problem

Can files be built so that that the maximum file size is limited to 2Gb or 512Gb? Can this be done inside and outside of InfoExpress?

Resolution

By default, RM/Cobol files are limited to 2Gb, by setting a runtime configurable USE-LARGE-FILE-LOCK-LIMIT=YES, it is possible to increase the file size limit up to 512Gb.

This needs to be set as the run unit is started. The attached demo, Create_Large_Files.zip shows a file that is created with the standard limit and then recreates the file with the 512Gb limit.

The configuration option can also be used when the file is under Info Express control and is set as the client run unit is started.

The runtime configurable shown above is only used when the file is created. Once a file has been created with the 2Gb it has to be rebuilt to apply the new limit. Refer to the following wiki for more information about extending a file beyond the 2Gb limit: http://community.microfocus.com/microfocus/cobol/rm_cobol/w/knowledge_base/23931.creating-an-index-file-greater-than-2gb.aspx

The contents of the attached zip are:

            fileread.cbl – source of the demo program

            fileread.cob – RM/Cobol executable code of the demo program

            ISAM.FIL – demo file that is created

            InfoExpress_Access – directory with the Info Express batch files

                        InfoExpress_large_file.bat – Info Express version of the large batch file

                        InfoExpress_large_file.cfg – Config file to route to file access to Info Express

                        InfoExpress_small_file.bat – Info Express version of the small batch file

                        InfoExpress_small_file.cfg – Config file to route to file access to Info Express

 

            Standard_Access - directory with the standard batch files

                        Standard_large_file.bat – Standard version of the large batch file

                        Standard_large_file.cfg – Standard config file to create a large file

                        Standard_small_file.bat – Standard version of the small batch file

 

The standard_small_file batch files will create the index file with a maximum size of 2Gb. The InfoExpress_small_file.bat will create the index file with a maximum size of 2Gb, but route the file access to Info Express.

The standard_large_file batch files will create the index file with a maximum size of 512Gb. The InfoExpress_large_file.bat will create the index file with a maximum size of 512Gb, but route the file access to Info Express.

 

Create_Large_Files.zip

 

Incident #2684542

Comment List
Related
Recommended