%%TOTAL_RECORDS
The number of records in the document to be written to the output file.
Note: The Reprint Index must include a %%TOTAL_RECORDS value or Reprint processing is not possible. The total length of the %%TOTAL_RECORDS value in the Reprint Index cannot exceed 9. Refer to the Enrichment Reprint User Guide for more information.
This system variable is only valid in the <SIDEPART> tag.