%%DOCUMENT_NO

The overall output document number, regardless of which output file contains the document. The %%DOCUMENT_NO system variable counts 1 to n in the DOCUMENT section of the rule file and starts over counting (1 to n) in the PRESORTED section of the rule file.

Note: If <ALLOW> is set to DOCCOUNT, each banner is also included in this count.

Valid in Control File Tags

This system variable is valid in the Control File when used in the following tags.

  • <ADDPART>
  • <FIELD> (with field replace, meaning the [action] parameter is set to R)
  • <SIDEPART>
  • <SORTPART>

Valid in Rule File Sections

This system variable is valid in the following Rule File sections.

  • Document
  • Presorted
  • Page
  • Finish