Record

Record is a read-writable built-in extract file attribute that is used in conjunction with the Determine Actual and ForEach logic commands when reading an extract file in ispec or report logic.

Record is an attribute of the extract file (which has Stereotype = File).

If Record is set to a specific value, the extract file is read from the record after that specified number. If Record is not set to a number, or it is set to the Glb.Zeros built-in segment attribute, the read starts from the first record. Using zero positions the file at the start of the file that is, at the first record. Using 1 sets the file to the next record after the first, that is, the second record, and so on. Hence, 

AExtract.Record := 5

Or,

Move 5 AExtract.Record

means that the next record read will be the sixth record.

If Record is set to a value equal to, or greater than, the last record number in the file, the Glb.Status built-in segment attribute is set to "*****" after the Determine Actual logic command is executed.

Record is not automatically set as records are accessed.

Note: For MCP Runtime, the length of the Record built-in attribute is 11.

Properties

Length = 8

Primitive = Number