%%TOTAL_PAGES
The total number of physical pages or banners (if <allow> is set to DOCCOUNT) in the input document including pages from any Insertpage tag group.
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