Hi,
This car example code might help you.
-********************************************
SET COMPOUND=OPEN
TABLE FILE CAR
SUM SALES
BY COUNTRY
HEADING
"Sales Report"
" "
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Sales', $
TYPE=HEADING, STYLE=BOLD, COLOR=BLUE, $
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K OPEN NOBREAK
END
SET COMPOUND=CLOSE
TABLE FILE CAR
SUM DC
BY COUNTRY
HEADING
"Cost of Goods Sold Report"
" "
ON TABLE SET STYLE *
TYPE=REPORT, TITLETEXT='Cost', $
TYPE=HEADING, STYLE=BOLD, COLOR=BLUE, $
TYPE=TITLE, STYLE=BOLD, $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K CLOSE NOBREAK
END
-***********************************************
Regards,
Venkat
product release:8203
o/s: windows 10
expected o/p formats: HTML,EXCEL,PDF