Displays the record number of the last record. The records are zero-relative; that is, the first record is record 0. The message “LASTRECORD IS UNKNOWN” is displayed for this attribute for files that were not defined with a BLOCKSTRUCTURE attribute value of FIXED.
If the LASTRECORD file attribute value of a FILESTRUCTURE = STREAM file exceeds the maximum value of a single-precision integer, FILEDATA returns the approximate value of LASTRECORD marked with the notation “(APPROXIMATELY).” Refer to the File Attributes Programming Reference Manual for a description of the LASTRECORD file attribute.