Getting Started with TRANSACT (32247-90007)
60 Chapter3
Using VPLUS and IMAGE
Adding Data to a Dataset
Adding Data to a Dataset
The SHOW FILE command in Dictionary/3000 reports the following for our form called
vcustomer and a dataset called customer. This form and dataset are used in the following
examples.
Figure 3-1. Dictionary Deļ¬nitions of Customer Form and Dataset
The important things to know about the above are that for both form vcustomer and
dataset customer, the valid data items or elements are: cust-no, name, street-addr,
city-state, and zipcode. These elements occur in the same order in both the dataset and the
> show file
FILE vcustomer
FILE TYPE: RESPONSIBILITY:
VCUSTOMER FORM
ELEMENT(ALIAS): PROPERTIES: ELEMENT(PRIMARY):
CUST-NO 9 (4,0,4) CUST-NO
NAME X (20,0,20) NAME
STREET-ADDR X (20,0,20) STREET-ADDR
CITY-STATE X (20,0,20) CITY-STATE
ZIPCODE X (6,0,6) ZIPCODE
> show file
FILE customer
FILE TYPE: RESPONSIBILITY:
CUSTOMER MAST
ELEMENT(ALIAS): PROPERTIES: ELEMENT(PRIMARY):
CUST-NO * 9 (4,0,4) CUST-NO
NAME X (20,0,20) NAME
STREET-ADDR X (20,0,20) STREET-ADDR
CITY-STATE X (20,0,20) CITY-STATE
ZIPCODE X (6,0,6) ZIPCODE