![]() ![]() |
|
MD/VOCThe jBASE MD (or VOC) file is used to find jQL modifiers and resolve Q-pointer filenames, the jSHELL also uses the MD file to lookup jCL programs. The location of the jBASE MD file is determined by the JEDIFILENAME_MD environment variable. This environment variable is usually set-up in the .profile script when the user logs on. If the environment variable is not set-up then the default path $HOME/MD is used when attempting to open the jBASE MD file. Most accounts/user directories have an MD file specific to that account/user directory. If users wish use an MD and the MD file does not already exist then the user should use the jBASE CREATE-FILE command to create a single level dictionary file. e.g. CREATE-FILE DICT MD 3 The modulo of the MD file should be increased depending on the number of jCL programs and Qpointers it is expected to contain. In order to use the jQL modifiers such as SORT and SELECT then the jQL modifiers should be copied into the new MD file. This can be achieved using a jBASE script called UpdateMD or by copying from the jBASE release directory file, /usr/jbc/src/MD on Unix, \JBASE30\src\MD on Windows. e.g. UpdateMD Short jCL programs are usually placed in the MD file to action other jCL programs in a different file and/or action cataloged jBC programs. e.g. APPL Account startup jCL program.
The MD file should be kept as a single level dictionary file to avoid confusion. The real filename is actually ./MD]D (or .\MD]D on Windows). All single level dictionary files contain a reflexive Q-pointer entry of the same name as the filename without the appended ]D, for DICT. e.g. The reflexive Qpointer entry in the ./MD]D file is MD, therefore the following jBASE copy command will copy the same record from the same file to the terminal. e.g. CT MD MD does the same as CT MD]D MD ACC |