If there is requirement to display multiple reports in one excel sheet then it needs to be implemented using compound reports.Following code may help to achieve the requirement.Here the compound report has been implemented using
ON TABLE PCHOLD FORMAT EXL2K OPEN NOBREAK
and
ON TABLE PCHOLD FORMAT EXL2K CLOSE
hope this helps
SET EMPTYREPORT=ON
-* From Postgres
ENGINE SQLPSTGR SET DEFAULT_CONNECTION reports
ENGINE SQLPSTGR SET VARCHAR OFF
SQL SQLPSTGR PREPARE SQLOUT FOR
SELECT * from industry limit 10;
END
-RUN
TABLE FILE SQLOUT
PRINT *
HEADING
"Data From Postgres DB"
ON TABLE PCHOLD FORMAT EXL2K OPEN NOBREAK
END
-* From T2
ENGINE SQLMYSQL SET DEFAULT_CONNECTION t2
ENGINE SQLMYSQL SET VARCHAR OFF
SQL SQLMYSQL PREPARE SQLOUT FOR
SELECT * from supplier limit 10;
END
-RUN
TABLE FILE SQLOUT
PRINT *
HEADING
"Data From MySQL DB"
ON TABLE PCHOLD FORMAT EXL2K CLOSE
END
WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.