CONFIGURE.FILE |
|
|
The CONFIGURE.FILE command changes the configuration of a file.
Format
CONFIGURE.FILE {DICT} file.name parameters {REPORTING}
where
Parameters which are not specified retain their existing values.
The CONFIGURE.FILE command adjusts the settings of one or more file parameters. Changes to the file type or group size result in immediate restructuring of the file and require exclusive access. The REPORTING option will show progress. Changes only affecting other dynamic file parameters will occur steadily as the file is updated unless the IMMEDIATE option is used.
Note that converting a file from case sensitive ids to case insensitive ids will result in loss of data if the file contains records that have ids with alternative casing of the same text.
The NO.RESIZE option disables the normal automatic split/merge operations that occur in dynamic files. The IMMEDIATE option can be used later to force the deferred splits/merges to be applied. See the description of dynamic files for more details on the use of this feature.
The resizing operations of the IMMEDIATE option are fully interruptible and can be performed while the file is in use.
Deleting records from a dynamic hashed file merges groups to keep the file load value between the merge load and split load but does not release any free space back to the operating system as it is highly likely to be needed again soon. The free space can be forcibly released with CONFIGURE.FILE filename RESIZE IMMEDIATE
Reconfiguring the VOC
The CONFIGURE.FILE command needs exclusive access to the file that is being reconfigured. Because the VOC file is permanently open, reconfiguration of this file can only be done from another account. Also, the file.name must reference an F-type VOC entry, not a Q-pointer. The process therefore becomes: 1.Logto another account (e.g. QMSYS) 2.Create an F-type VOC entry that points to the VOC of the original account 3.Do the CONFIGURE.FILE command 4.Delete the F-type VOC entry 5.Logto the original account
Examples
CONFIGURE.FILE STOCK MINIMUM.MODULUS 200 SPLIT.LOAD 75
This command changes the minimum modulus and split load percentage of the STOCK file. The actual change will take effect as the file is updated by future access.
CONFIGURE.FILE STOCK DIRECTORY
This command changes the file to be a directory file.
CONFIGURE.FILE STOCK DIRECTORY ENCODING UTF-8
This is similar to the previous example but sets the file to use UTF-8 encoding.
CONFIGURE.FILE STOCK DYNAMIC ECS
This command converts the STOCK file to an ECS mode dynamic file. |