Getting Started with TRANSACT (32247-90007)
203
F Loading Form Definitions
The utility DICTVPD may be used to load form definitions to the dictionary. When the
forms are defined using FORMSPEC, you must be careful to define the field names to be
the same as the names you want to identify with the form in the dictionary.
For example, the following is the FORMSPEC listing of the form vorderhead.
********* ********* ********* ********* ********* ********* ********* *********
vorderhead order data
order number [order_no] customer [cust ] status [st] date [date ]
________ _____ __ ______
********* ********* ********* ********* ********* ********* ********* **********
Field: order_no
Num:14 Len: 8 Name: ORDER_NO Enh: HI FType: O DType: CHAR
Init Value:
Field: cust
Num: 2 Len: 5 Name: CUST_NO Enh: HI FType: O DType: CHAR
Init Value:
Field: st
Num: 3 Len: 2 Name: ORDER_STATUS Enh: HI FType: O DType: CHAR
Init Value:
Field: date
Num: 4 Len: 6 Name: ORDER_DATE Enh: HI FType: O DType: CHAR
Init Value:
This form definition was loaded into the dictionary as follows:
:run dictvpd.pub.sys
DICTIONARY/3000 VPLUS LOADER HP32244A.02.00 - (C) Hewlett-Packard Co. 1983
DICTIONARY PASSWORD>
FORMS FILE NAME> formfile
SELECT DATA CONVERSION (Default/Char)>
DATA ELEMENTS ALREADY DEFINED (Y/N)> y
LIST FILE>
CHANGE UNDERSCORE TO HYPHEN (Y/N)> y
LOADING DATA DICTIONARY
FORM NAME TO BE LOADED (or "@"/"?")> vorderhead
LOADING FORM: VORDER_HEAD
FORM NAME TO BE LOADED (or "@"/"?")>