Hi, I need to set Burst value and File name for FTP option dynamically in Reportcaser based on lines of Code (By Sort field). For example, The report should burst after every 100 records.How can I implement this condition?
Thanks, SujiThis message has been edited. Last edited by: Kerry,
You need to create a sort field that counts number of lines of output - probably using a COMPUTE. As soon as you get this to where it would page-break after each 100 records then you can just use that same field as your burst value. Remember that to burst, this will have to be your primary sort. There are numerous examples of what you are trying to do if you use the search tab.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
December 01, 2008, 11:37 AM
Kerry
FYI, solution from Suji:
This is my code to burst a report into multiple sections and ftp them to a particular location(/tmp).
APP HOLD holddir SQL SQLORA SELECT RR_NUM FROM TABLENAME;
TABLE FILE SQLOUT PRINT RR_NUM COMPUTE FILE_FTP/A7 = RR_NUM || '.xls' ; ON TABLE HOLD AS BURST_REP FORMAT FOCUS END
TABLE FILE BURST_REP PRINT ACCTNUM BY RR_NUM NOPRINT END
The following is the code for bursting which resides in a separate APP Folder in reporting server.
TABLE FILE BURST_REP ON TABLE SET ASNAMES ON PRINT RR_NUM AS 'VALUE' FILE_FTP AS 'DEST' ON TABLE PCHOLD END
Thanks a lot Suji for sharing with us.
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.