Use the following procedure to create a command synonym table. Then see Entering command synonym definitions into the table for instructions on entering your synonyms and their definitions.
CREATE TABLE COMMAND_SYNONYMS ( VERB CHAR(18) NOT NULL, OBJECT VARCHAR(31), SYNONYM_DEFINITION VARCHAR(254) NOT NULL, REMARKS VARCHAR(254) ) IN DBSPACE1
The columns can be in any order, and you can add a column for comments so users know what function each synonym performs.
COMMENT ON TABLE COMMAND_SYNONYMS IS 'SYNONYMS FOR R AND D'The phrase SYNONYMS FOR R AND D appears in the REMARKS column of the SYSTEMS.SYSCATALOG table.
CREATE UNIQUE INDEX SYNONYMS_INDEX ON COMMAND_SYNONYMS (VERB, OBJECT)
Index both the VERB and OBJECT columns with the UNIQUE keyword to prevent duplicate synonym definitions. If you choose not to use the UNIQUE keyword, QMF allows duplicate synonyms in the table; QMF uses the first synonym it locates in the table and displays a warning message on the QMF Home panel after initialization.