VOC F-Type Records - File Definitions |
|
|
Every file referenced by an application is accessed via an F-type VOC record. This record maps the QM name of the file to the pathnames of the data and dictionary components.
There are three possible values:
Leaving the field empty causes ACCOUNT.SAVE and FILE.SAVE to fall back on alternative file selection methods.
Applications that make direct access to this field should allow for the presence of codes not in the above list.
Either pathname field may be blank to indicate that the file portion does not exist. Three special pathname prefixes are allowed: •@QMSYS will be replaced by the QMSYS account directory pathname, ensuring that references to items in the QMSYS account will still function if a new release is installed at a different location. •@TMP will be replaced by the pathname in the TEMPDIR configuration parameter. •@HOME will be replaced by the value of the HOME environment variable on Linux or the HOMEPATH environment variable on Windows.
By using F-type VOC items to locate files indirectly rather than embedding file pathnames in the application, the VOC entry becomes the only place where the pathname is recorded. If a file is moved, perhaps to balance loading across multiple disks, only the VOC entry needs to be amended; the application itself is not affected.
Where two or more accounts share a file, the VOC files in each account could have F-type records mapping the QM name to the pathnames. This is not recommended. Instead, the account that owns the file should have an F-type record and all other accounts should have Q-type records to access the file indirectly.
The pathname of either or data or dictionary portion of a file may be specified as VFS:handler:detail to make use of the Virtual File System.
A summary of F-type VOC records may be displayed or printed using
|