Defines the Table of Contents and its attributes.
DECLARE-TOC toc_name [FOR-REPORTS=(report_name1[,report_namei]...)] [DOT-LEADER=YES|NO] [INDENTATION=position_count_num_lit] [BEFORE-TOC=procedure_name[(arg1[,argi]...)]] [AFTER-TOC=procedure_name[(arg1[,argi]...)]] [BEFORE-PAGE=procedure_name[(arg1[,argi]...)]] [AFTER-PAGE=procedure_name[(arg1[,argi]...)]] [ENTRY=procedure-name [(argi [,argi] ...)]] END-DECLARE
Name of the Table of Contents.
One or more reports that use this Table of Contents.
Whether a dot leader precedes the page number. The default is NO.
Number of spaces to indent each level. The default is 4.
Procedure executed before generating the Table of Contents. If no Table of Contents is generated, the procedure does not execute.
Procedure executed after generating the Table of Contents. If no Table of Contents is generated, the procedure does not execute.
Procedure executed at the start of every page.
Procedure executed at the end of each page.
Procedure that is executed to process each Table of Contents entry (instead of Production Reporting doing it for you). When this procedure is invoked, the following Production Reporting-reserved variables are populated with data about the TOC entry:
#SQR-TOC-LEVEL
$SQR-TOC-TEXT
#SQR-TOC-PAGE
These are global variables. If the procedure is local, you must precede it with an underscore (for example, #_sqr-toc-page). These three Production Reporting-reserved variables are only valid within the scope of the ENTRY procedure. They can be referenced outside the scope, but their contents are undefined.
Use DECLARE-TOC in the SETUP section.
You can use DECLARE-TOC to declare one or more Table of Contents for the application.