Each record definition file must include at least one DEFINE
FIELD statement to describe the data type of a field in the
unloaded record. This statement has two formats:
o a format that defines a new name
define field name_string datatype is text size is 20 characters.
o a format that references another, previously defined, field
define field first_name based on name_string.
RMU Unload generates the DEFINE FIELD statement with just
the DATATYPE clause. The full syntax is shown in DEFINE FIELD
Statement.
Figure 2 DEFINE FIELD Statement
(B)0[m[1mdefine-field = [m [1m [m
[1m [m [1m [m [1m [m
[1;4mDEFINE[m[1m [1;4mFIELD[m[1m <name> qwqqqqqqqqqqqqq> [1;4mBASED[m[1m [1;4mON[m[1m <name> qqqqqqqqqqqqqqqqwq> . q>[m
[1m [m [1m mqwqwq>[m [1;4mDATATYPE[m[1m IS[m [1mqqqqqqq> datatypes qqqqqqwqwqj [m
[1m [m [1m [m [1mx[m [1mtq> [1;4mDESCRIPTION[m[1m IS qqqq> /* comment */ qqu x [m
[1m [m [1m [m [1mx[m [1mmq> [1;4mFILLER[m[1m qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x [m
[1m [m [1m [m [1mmqqqqqqqqqqqqqqqqqqqqq <qqqqqqqqqqqqqqqqqqqqqj [m
[1m [m [1m [m [1m [m
[1m [m
The following example of the DEFINE FIELD statement is more
complete, showing the use of annotations (DESCRIPTION clause)
and based-on fields.
define field name_string
description is
/* This a generic string type to be used for based on */
datatype is text size is 20 characters.
define field first_name
based on name_string.
define field last_name
based on name_string.
define record PERSON
description is
/* Record which describes the PERSON.DAT RMS file */.
first_name.
last_name.
end.