Loading Form Definitions [ Getting Started With TRANSACT V ] MPE/iX 5.0 Documentation
Getting Started With TRANSACT V
Appendix 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 "@"/"?")>
Name Alias NEW/OLD Type
FORMFILE NEW VPLS
VORDERHEAD NEW FORM
ORDER-NO OLD X ( 8, 0, 8)
CUST-NO OLD 9 ( 4, 0, 4)
ORDER-STATUS OLD X ( 2, 0, 2)
ORDER-DATE OLD X ( 6, 0, 6)
END OF PROGRAM
:
Note that the form definition used the underscore character. DICTVPD
will convert the underscore to a hyphen if directed to do so.
MPE/iX 5.0 Documentation