%%TOT_SEQUENCE_NO

The total number of documents currently in an output.

If you use a <FILEBREAK> command to break documents into different files, then %%TOT_SEQUENCE_NO will be calculated based on the total number of documents currently in all the files of the output. For example, if you break an output into a new file every 10 documents and you have 20 documents in the output, you would have two output files, each with 10 documents. If you access the %%TOT_SEQUENCE_NO system variable while processing the 12th document, the value will be 12 even though the 12th document is only the second document of the second output file.

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