


vutil can convert a C-ISAM(R) file into a Vision file. This is useful when you are moving C-ISAM data to an ACUCOBOL-GT application. The command is:
vutil -convert [-a] [+c] [-234] [-d dir] [files]
You need not specify that the file is C-ISAM; vutil will determine that.
The "convert" function will take each named file and convert it from a C-ISAM file to a corresponding Vision file. If no files are specified, then the standard input is read for a list of files to convert.
Specifying "+c" will cause the resulting records to be compressed.
Normally vutil will warn the user about the impending conversion and ask if he or she wants to continue. The "-a" (for "automatic") option suppresses this warning. This can be useful when you are calling vutil from another program.
The "-4" option specifies that you want the resulting file to be in Vision Version 4. A "-3" means you want the file to be a Version 3 file, and "-2" means you want a Version 2 file.
The "-d" option specifies that you want the converted files to be placed in a new directory. Dir should be the name of a directory on the machine other than the directory containing the files to be converted. The "-d" option implies the "-a" option.
There are a few types of files that cannot be converted due to restrictions in Vision. Any of the following properties will cause vutil to print a message and leave the file alone:
1. A record size or block size greater than 32 KB.
2. More than 120 keys.
3. An individual key with more than 250 bytes in it.
4. A single key with more than sixteen segments (Vision Version 4)
or more than six segments (Vision Version 2 or 3).
5. A primary key that allows duplicates.