Customising the Master Dictionary
Note
You must have at least SYS1 privileges to update a Master Dictionary.
When you create an account, Reality copies the appropriate command definition items to the account's MD, automatically. However, you can if you wish customise the vocabulary available in your account. This can be done in a number of ways. For example, you can:
- Delete selected commands from the MD.
- Create synonyms for standard commands.
- Add new commands by creating cataloged DataBasic programs and Procs, and by creating TCL commands that execute native commands to the host system (that is, UNIX or Windows).
In this way, you can tailor the vocabulary of your account without affecting users of other accounts.
Note
Deleting command definition items must be done with care. If you delete a command that is used by a cataloged DataBasic program or by a Proc, the referencing command will not operate correctly.
Command Synonym Definition Items
You can create synonyms for standard commands by creating command synonym definition items. The item-id can be any name not in the MD. The first attribute must contain the letter V; the second attribute must contain the item-id of the referenced command. An example of a synonym for the SORT command might be:
ORDER 001 V 002 SORT
Creating a command synonym definition item means that if the command definition item changes in a future release, your synonym will not have to change.
Adding Commands
When adding new DataBasic and Proc commands, it is best to create your own special files to contain the programs and Procs. When you catalog a DataBasic program, Reality creates an item in the MD that points to the executable program in a file. For details see the DataBasic Reference.
For a Proc, you create an item in your MD with a transfer instruction in attribute 2 that branches to the new Proc you created in your file. See the Proc Reference for details.
To create commands that execute host system commands, refer to the description of the SYS command.