![]() |
![]() |
|
|
Creating Field Table Files
Field table files are created using a standard text editor, such as vi. They have the following format:
Note: In COBOL applications, however, such lines are not passed through to the COBOL copy files.
name rel-number type flag comment
where:
Note that these entries must be separated by white space (blanks or tabs).
Field Table Example
The following is an example field table in which the base shifts from 500 to 700. The first field in each group will be numbered 501 and 701, respectively.
System Field Table File
# following are fields for EMPLOYEE service
# employee ID fields are based at 500
*base 500
#name rel-number type flags comment
#---- ---------- ---- ------ -------
EMPNAME 1 string - emp name
EMPID 2 long - emp id
EMPJOB 3 char - job type
SRVCDAY 4 carray - service date
*base 700
# all address fields are now relative to 700
EMPADDR 1 string - street address
EMPCITY 2 string - city
EMPSTATE 3 string - state
EMPZIP 4 long - zip code
![]() |
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|