ContentsIndexPreviousNext

3.3.6 Creating Empty Files

The "gen" function creates empty Vision files. This is equivalent to doing an OPEN OUTPUT on the files from COBOL and is supplied as an alternative to writing a program explicitly to create empty data files. The command syntax is:

vutil -gen [-234]

or

vutil  -gen  [ -234 ]  [ -q ]  list  directory

The first syntax invokes a prompting program that asks you for the name of the new file and then prompts you for each file attribute. The second syntax shown above allows you to specify all file attributes in advance, and store them in a file.

Whether you store the attributes in a file or respond to prompts at the keyboard, the file attributes you provide are the same.

-4 creates a file with Vision Version 4 dual file format. This is the default;

-3 creates a file with Vision Version 3 single file format;

-2 creates a file with Vision Version 2 format.

-q This option causes vutil to exit (with status 99) if user interaction is required.

More:

3.3.6.1 Responding to vutil generated prompts

3.3.6.2 Specifying file attributes in advance