It seems to behave in WF 5.3.2:
-SET &ECHO=ALL;
USE
C:\ibi\apps\Samples\CENTORD.FOC
END
-RUN
SET PAGE-NUM=OFF
SET ORIENTATION=LANDSCAPE
-RUN
-*-- Report 1 --------------------------
SET COMPOUND = OPEN
-RUN
TABLE FILE CENTORD
SUM LINEPRICE
BY PLANT
BY PRODCAT
HEADING
"Sales Report"
" "
FOOTING BOTTOM
"Page: <TABPAGENO"
ON TABLE SET STYLE *
TYPE=REPORT, FONT='Arial', SIZE=9, $
TYPE=HEADING, STYLE=BOLD, COLOR=BLUE, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
-RUN
-*-- Report 2 --------------------------
TABLE FILE CENTORD
SUM QUANTITY
BY PLANT
BY PRODCAT
HEADING
"Inventory Report 1"
" "
FOOTING BOTTOM
"Page: <TABPAGENO"
ON TABLE SET STYLE *
TYPE=REPORT, FONT='Arial', SIZE=9, $
TYPE=HEADING, STYLE=BOLD, COLOR=RED, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
-RUN
-*-- Report 3 --------------------------
TABLE FILE CENTORD
SUM QUANTITY
BY PLANT
BY PROD_NUM
HEADING
"Inventory Report 2"
" "
FOOTING BOTTOM
"Page: <TABPAGENO"
ON TABLE SET STYLE *
TYPE=REPORT, FONT='Arial', SIZE=9, $
TYPE=HEADING, STYLE=BOLD, COLOR=ORANGE, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
-RUN
-*-- Report 4 --------------------------
SET COMPOUND = CLOSE
-RUN
TABLE FILE CENTORD
SUM LINE_COGS
BY PLANT
BY PRODCAT
HEADING
"Cost of Goods Sold Report"
" "
FOOTING BOTTOM
"Page: <TABPAGENO"
ON TABLE SET STYLE *
TYPE=REPORT, FONT='Arial', SIZE=9, $
TYPE=HEADING, STYLE=BOLD, COLOR=GREEN, $
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
-RUN
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server