Posted: Fri Oct 01, 2004 10:15 am Post subject: DFSORT: page header on grand total page
Sorry for the urgency. This is going in production today, and I was just informed it can't be processed by our report archival software because the grand total line produces a page feed but no new page header. Is there any way to do code this so the grand total has a header on its page (or alternately, doesn't generate a page feed?) Report code follows:
HEADER2=(2:C'Run on ',DATE=(4MD/),C' at ',&TIME,
66:'W A L - M A R T S T O R E S, I N C.',
136:'TX264101US',160:&PAGE,2/,
2:62,14,76:'GROSS SALES REPORT',
136:'UPDATED ',DATE=(4MD/)),
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Oct 01, 2004 11:16 am Post subject:
Not sure what you want as the "header" for the grand total, but whatever it is, you can just add it at the beginning of TRAILER1, like this:
Code:
TRAILER1=('header lines',/,
'trailer lines')
For example, if you wanted the HEADER2 lines at the top of the page for the grand total, you could change TRAILER1 to:
Code:
TRAILER1=(2:C'Run on ',DATE=(4MD/),C' at ',&TIME,
66:'W A L - M A R T S T O R E S, I N C.',
136:'TX264101US',160:&PAGE,2/,
2:62,14,76:'GROSS SALES REPORT',
136:'UPDATED ',DATE=(4MD/),/,
17:'-------------------',
39:'-------------------',
61:'-------------------',
83:'-------------------',
105:'-------------------',
127:'-------------------',
149:'-------------------',/,
1:'GRAND TOTAL:',
16:SUBTOTAL=(20,6,PD,M5,LENGTH=20),
38:SUBTOTAL=(26,6,PD,M5,LENGTH=20),
60:SUBTOTAL=(32,6,PD,M5,LENGTH=20),
If that doesn't help, then please explain in more detail what you want to do. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Thank you! Do you happen to know if I need to move the grand total inside the "sections" brackets to do that? For some reason I have it in my head that trailer2 can only exist inside the sections. Would that still print a grand total only at the end of the report, and not at every section break?
(There is a report ID that must be in a certain position on the report on every page, or that page won't get defined correctly in our report archival software).
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Oct 01, 2004 11:44 am Post subject:
Glad to help.
Quote:
For some reason I have it in my head that trailer2 can only exist inside the sections
To clarify, only TRAILER3 can be specified within SECTIONS. TRAILER3 is the sections trailer that prints at the end of every section. TRAILER2 is the page trailer that prints at the end of every page. TRAILER1 is the report trailer that prints at the end of the report. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum