Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Use REBUILD to convert to IDXFORMAT(8)

Use REBUILD to convert to IDXFORMAT(8)

Problem:


 

I have an existing application that uses Indexed Sequential files - IDXFORMAT(3), and they are approaching their size limit.

I need to continue to add additional records to the file.

Resolution:


 

Use REBUILD to convert to IDXFORMAT(8)

By default Visual COBOL V2.3 creates indexed sequential files as IDXFORMAT(8) (large format),

in addition FILEMAXSIZE(8) is also set by default.

In order to convert existing files to other formats, use the Rebuild utility.

Rebuild is a file management utility invoked from the command prompt which enables you to:

    Reorganize an indexed file

  •     Rebuild a corrupt indexed file
  •     Convert files from one organization to another
  •     Validate an indexed file

In the example below Rebuild is used to display information about the file MUSTOCK.DAT using the /n parameter :

Note: the file format is IDX-3 - IDXFORMAT(3).

In order to convert this file to IDXFORMAT(8) (large format) follow these steps:

  • Create a sub-directory to receive the new file (this is optional):

    md new

  • use the following Rebuild command line to create the new IDXFORMAT(8) file:

    REBUILD MUSTOCK.DAT,new\MUSTOCK.DAT /t:MF8

Note: When working with Linux/UNIX:

mkdir new

rebuild MUSTOCK.DAT,new/MUSTOCK.DAT /t:MF8

This will create a new copy of the file as IDXFORMAT(8) in the new sub-directory:

Display information about the new file MUSTOCK.DAT using the /n parameter :

Note: the file format is IDX-8 - IDXFORMAT(8).

 

For further information regarding IDXFORMAT and FILEMAXSIZE, please refer to the product documentation.

 

For information with respect to File size limits for Server Express and Net Express please refer to this article.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2017-02-03 18:37
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.