Dictionary/3000 Reference Manual (32244-90001)

194 Chapter6
The Dictionary DICTPDE Utility
>ALTER KIND
>ALTER KIND
Changes the kind of data declaration generated (either as VAR or TYPE) for the entities
extracted from the Dictionary.
Prompts
The following prompt is issued when the command-subcommand ALTER KIND is entered:
EXTRACT AS TYPE OR VAR (T/V)>
EXTRACT AS TYPE OR VAR
(T/V)> Enter T (or press [[RETURN]]) if the extracted data definitions are to be
generated as TYPE data declarations. Enter V if the data definitions
extracted are to be generated as VAR data declarations. Note that
DICTPDE assumes that the definitions are to be generated as TYPE
declarations unless V is entered in response to this prompt.
When generating VAR declarations for an element that back-references
another element in the Dictionary, the element used as the back-reference
will be generated as a TYPE declaration.
Pressing [[RETURN]] in response to this prompt indicates that the data
definitions are to be generated as TYPE data declarations.
Discussion
ALTER KIND allows you to specify whether the data definitions will be generated as
TYPE or VAR declarations. ALTER KIND also allows you to alternately generate
declarations as TYPE or VAR. Note that a data definition may NOT be generated as both
TYPE and VAR declarations in the same output file. However, you may choose to generate
a data definition as a VAR declaration for one output file, and to generate the same data
definition as a TYPE declaration for a different output file. (To change the output file, see
the ALTER OUTPUT command-subcommand in this section.)
Example
>alter kind
EXTRACT AS TYPE OR VAR (T/V)> v The code generated after this
command will be generated as VAR
declarations.