Serial record part in EGL source format

You declare a record part of type serialRecord in an EGL 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 = fileName

The file name. For details on the meaning of your input, see Resource associations (overview). For rules, see Naming conventions.

lengthItem = lengthItem

The length item, as described in Properties that support variable-length records.

numElementsItem = numItem

The number of elements item, as described in Properties that support variable-length records.

structureItem

A structure item, as described in Structure item in EGL source format.

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

Related tasks
Syntax diagram

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 item in EGL source format