%%SEQUENCE_NO

The sequence number of the document currently being processed. The sequence number is the document’s position in the output file. For example, if you are processing the third document in an output file, the sequence number is 3.
Note: If the <ALLOW> tag is set to DOCCOUNT, each banner counts as a document and therefore increments the sequence number.

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