Data Definition Language (DDL) Reference Manual

Dictionary Maintenance
Data Definition Language (DDL) Reference Manual529431-004
10-23
Converting a Dictionary
If you run Enform Plus reports using $SYSTEM.SYSTEM.DDQUERYS against a
converted dictionary, change the dictionary description embedded in the dictionary on
$SYSTEM.DDL and install the product version of Enform Plus that corresponds to this
product version of the DDL compiler. After you upgrade the dictionary on
$SYSTEM.DDL to product version 7 or 8 (on a G-series or H-series system,
respectively) and install the D-series product version of Enform Plus, you can still use
the product version 7 or 8 dictionary to report against dictionaries that have not yet
been converted as long as you do not use D-series, G-series, or H-series dictionary
features in the reports.
Alternately, you can keep a dictionary with the earlier dictionary description in one
subvolume and the current dictionary description in another subvolume. Use the earlier
dictionary for Enform Plus reports for unconverted files and the D-series, G-series, or
H-series dictionary for Enform Plus reports on D-series, G-series, or H-series files.
To change the dictionary description, do this:
1. Move to the subvolume $SYSTEM.DDL.
2. Purge the existing dictionary files on that subvolume.
3. Run the DDL compiler to compile the dictionary schema
$SYSTEM.SYSTEM.DDLSCHEMA and print a listing of the compiled schema.
Example 10-18. Converting a Dictionary From One Product Version to Another
67> VOLUME $data.sales
68> DDL
!?DICT
Open the dictionary on $DATA.SALES
!?DDL ddlsrc !
Open the DDL source file DDLSRC
!OUTPUT *.
Generate dictionary schema on DDLSRC
!?NODDL
Close DDLSRC and check DDLSRC before continuing
!?DICT !
Clear the dictionary on $DATA.SALES
!?SOURCE ddlsrc
Generate new dictionary objects from the schema on
DDLSRC
Example 10-19. Changing a Dictionary Description
69> VOLUME $system.ddl
70> PURGE
dictalt,dictddf,dictodf,dictkdf,dictrdf,dictotf,dictobl
71> PURGE
dictcdf,dictmap,dictouf,dictouk,dicttkn,dicttyp,dictver
72> DDL /IN $system.system.ddschema, OUT $s.#printer, NOWAIT/