Records

PURPOSE:  The RECORDS command displays the number of records in the current Data Set (DS) or any DS that is specified by name, as recorded in the Data Base Library (DBL).

Syntax

RECORDS [/FOR/ DS name] [IN DBL dbl_name]

name

references a Data Set other than the current one.  The RECORDS command used without options will display the number of records in the current Data Set.

[IN DBL dbl_name]

is used to reference a Data Set in a DBL other than the current DBL

EXAMPLE

*USE DS BOOKS_DBM2
*RECORDS
21 Record(s) Found
*RECORDS DS AUTHORS_DBM2
15 Record(s) Found

NOTES:  The RECORDS command displays the value stored in the Data Set entry in the Data Base Library and sets the value into the System Field @RECORDS.  The COUNT Data Manipulation command , however, reports the number of records in a Data Set by actually reading the records.  Since the RECORDS command does not take into account changes made outside ACCENT R, it should be used only when the particular Data Set has not been affected externally.  Otherwise, the RECORDS command is recommended over the COUNT command because it uses fewer computer resources.

SEE ALSO:  COUNT