The DEFINE RECORD statement defines the ordering of the fields
within the file. A field may only be used once. The name of
the field is not used for column name matching unless the
Corresponding qualifier is used with the RMU Load command.
Figure 3 DEFINE RECORD Statement
(B)0[m[1mdefine-record = [m
[1m [m
[1;4mDEFINE[m[1m [1;4mRECORD[m[1m <name> qwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwq> . qk [m
[1m mq> [1;4mDESCRIPTION[m[1m IS qqqqq> /* comment */ qqqqj x [m
[1m lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq [m [1m<qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj[m
[1m mwq> <fieldname> qq> alignment-clause qqq> . qwqk [m
[1m mqqqqqqqqqqqqqqqqqqqq <qqqqqqqqqqqqqqqqqqqqqj x [m
[1m lqqqqqqqqqqqqqqqqqqqqqqqqqq <qqqqqqqqqqqqqqqqqqj [m
[1m mqq> [1;4mEND[m[1m qwqqqqqqqqqqqwqwqqqqqqqqqqqqwqq> . qqqqqqqq> [m
[1m mq> <name> qj mq> [1;4mRECORD[m[1m qqj [m
[1m [m
(B)0[m[1malignment-clause = [m
[1m [m
[1mqwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqq> [m
[1m mq> [1;4mALIGNED[m[1m [1;4mON[m[1m qqwq> [1;4mBYTE[m[1m qqqqqqwqwqqqqqqqqqqqqqwqj [m
[1m tq> [1;4mWORD[m[1m qqqqqqu mq> [1;4mBOUNDARY[m[1m qj [m
[1m tq> [1;4mLONGWORD[m[1m qqu [m
[1m tq> [1;4mQUADWORD[m[1m qqu [m
[1m mq> [1;4mOCTAWORD[m[1m qqj [m
[1m [m
The ALIGNED ON clause can be used to adjust for alignment added
explicitly or implicitly by host language applications. For
instance, on OpenVMS Alpha many 3GL language compilers naturally
align fields to take advantage of the Alpha processor hardware
which executes more efficiently when data is well aligned. The
default is BYTE alignment.
In the following example, field C is expected to start on a
quadword boundary, so A is assigned the first longword, the
second longword is ignored, and finally the C is assigned the
last longword value.
define field A datatype is signed longword.
define field C datatype is signed longword.
define record RMUTEST.
A .
C aligned on quadword boundary.
end RMUTEST record.
Additional Information:
explode
extract