HP OpenVMS Systems

ask the wizard
Content starts here

Counting Records in RMS File?

» close window

The Question is:

Is there a way to determine the number of records in an RMS indexed file
 without reading through the entire file and counting the records?

The Answer is :

  No, in the general case.  Estimates are obviously possible (and
  particularly accurate when the record size is a known ratio of
  the block size), but counting of records is otherwise required.

answer written or last revised on ( 18-JUN-2004 )

» close window