November 10, 2005, 02:10 PM
cspowellExcel Bursting
What code do I use to burst a report into multiple excel worksheets???
November 10, 2005, 03:02 PM
codermonkeyThe syntax is:
HOLD FORMAT EXL2K BYTOC
You need WF 5.3 and Excel 2002 or higher I think.
Brian Carter gave a code example for handling large quantities of data at Summit. (It gets around the 65,000 row limit). I've included it in case you will find it useful:
TABLE FILE QAFOC03
PRINT F3SSN
COMPUTE COUNTER/I9 = COUNTER+1;
COMPUTE WORKSHEET/I4 = COUNTER/65500;
ON TABLE HOLD AS EXL65K FORMAT ALPHA
END
TABLE FILE EXL65K
PRINT F3SSN
BY WORKSHEET NOPRINT
ON TABLE PCHOLD FORMAT EXL2K BYTOC
END
Hope this helps.
November 10, 2005, 04:10 PM
cspowellThank you. I have Excel 2000, which explains the problem I'm having.
November 10, 2005, 04:11 PM
Francis MarianiI did not know about FORMAT EXL2K BYTOC
What would be great is to be able to burst an Excel report into multiple tabs in the same worksheet.
November 10, 2005, 06:14 PM
Tony AFrancis,
That's exactly what it does - multiple worksheets in a workbook with each worksheet name bearing the value of the break field.
November 14, 2005, 05:10 PM
Francis MarianiSorry, I misunderstood, since cspowell asked how to create "multiple excel worksheets".
Will try it out.
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
November 15, 2005, 03:19 AM
Tony AFrancis,
It's the old terminology thing again where some refer to the same thing by different phrases.
In this instance MS refer to their entire xls file as a workbook containing one or more worksheets (e.g. "tabs")