Basic record part in EGL source format

You declare a record part of type basicRecord in an EGL source file, which is described in EGL source format.

An example of a basic record part is as follows:
  Record myBasicRecordPart type basicRecord
    10 myField01 CHAR(2);
    10 myField02 CHAR(78);
  end
The syntax diagram for a basic record is as follows:

Syntax diagram for a basic record part
Record recordPartName basicRecord
Identifies the part as being of type basicRecord and specifies the name. For rules, see Naming conventions.
field
A variable appropriate in a record, as described in Record parts. End each variable declaration with a semicolon.
structureField
A fixed-structure field, as described in Structure field in EGL source format.

Related concepts
EGL projects, packages, and files
Fixed record parts
References to parts
Parts
Record parts
References to variables in EGL
Typedef

Related tasks
Syntax diagram for EGL statements and commands

Related reference

DataItem part in EGL source format
EGL source format
Function part in EGL source format
Indexed record part in EGL source format
MQ record part in EGL source format
Naming conventions
Primitive types
Program part in EGL source format
Properties that support variable-length records
Relative record part in EGL source format
Serial record part in EGL source format
SQL record part in EGL source format
Structure field in EGL source format

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.