Indexed record part in EGL source format

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

An example of an indexed record part is as follows:

  Record myIndexedRecordPart type indexedRecord
    {
      fileName = myFile,
      keyItem  = myKeyItem
    }
    10 myKeyItem CHAR(2);
    10 myContent CHAR(78);
  end

The syntax diagram for an indexed record part is as follows:


Syntax diagram for an indexed record part

Record recordPartName indexedRecord

Identifies the part as being of type indexedRecord and specifies the name. For rules, see Naming conventions.

fileName = logicalFileName

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

keyItem = keyItem

The key item, which can only be a structure item that is unique in the same record. You must use an unqualified reference for keyItem; for example, use myItem rather than myRecord.myItem. (In a function, however, you can reference that structure item as you would reference any structure item.)

lengthItem = lengthItem

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

numElementsItem = numElementsItem

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