Dictionary/3000 Reference Manual (32244-90001)

Chapter 6 213
The Dictionary DICTPDE Utility
>GENERATE FILE
The file CUSTFORM is defined in the Dictionary as follows:
FILE : CUSTFORM
FILE-TYPE : FORM
FILE-ALIAS : CUSTALIAS
CUSTFORM has the following elements associated with it:
ELEMENT : ACCOUNT LAST-NAME FIRST-NAME CREDIT
ELEMENT-ALIAS : ACCOUNTALIAS
ELEMENT-TYPE : I X X R
ELEMENT-LENGTH : 4 16 10 4
The code is generated as follows:
>generate file
FILES(S)> custform
TYPE
CUSTFORM =
RECORD
ACCOUNTALIAS : INTEGER;
LAST_NAME : PACKED ARRAY[1..16] OF CHAR;
FIRST_NAME : PACKED ARRAY[1..10] OF CHAR;
CREDIT : REAL
END;
Note that the alias name for the element ACCOUNT was used when the code was
generated. This is the name by which this element is known by the file CUSTFORM. Also
note that the hyphens in the element names have been replaced by underscores when the
code was generated. (See Naming Considerations later in this section for more information
on converting hyphens to underscores.)
The next example shows the code generated for a parent file (this file must be defined in
the Dictionary as type BASE or VPLUS). The file STOREFF is defined in the Dictionary as
follows:
FILE : STOREFF
FILE-TYPE : VPLS
The following files are related to STOREFF:
FILE : CUSTFORM DATEFORM INVENTFORM
FILE-TYPE : FORM FORM FORM
FILE-ALIAS : CUSTALIAS
The file CUSTFORM has the following elements associated with it:
FILE : CUSTFORM
ELEMENT : ACCOUNT LAST-NAME FIRST-NAME CREDIT
ELEMENT-ALIAS : ACCOUNTALIAS