Serial record part in EGL source format

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

An example of a serial record part is as follows:
  Record mySerialRecordPart type serialRecord
    {
      fileName = "myFile"
    }
    10 myField01 CHAR(2);
    10 myField02 CHAR(78);
  end
The syntax diagram for a serial record part is as follows:

Syntax diagram for a serial record part
Record recordPartName serialRecord
Identifies the part as being of type serialRecord and specifies the part name. For the rules of naming, see Naming conventions.
fileName = "logicalFileName"
The logical file name. For details on the meaning of your input, see Resource associations (overview). For rules, see Naming conventions.
lengthItem = "lengthField"
The length field, as described in Properties that support variable-length records.
numElementsItem = "numField"
The number of elements field, as described in Properties that support variable-length records.
structureField
A structure field, as described in Structure field in EGL source format.

Related concepts
EGL projects, packages, and files
References to parts
Parts
Record parts
References to variables in EGL
Resource associations and file types
Typedef

Related tasks
Syntax diagram for EGL statements and commands

Related reference
Arrays
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
SQL record part in EGL source format
Structure field in EGL source format

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