Title: | FOCUS, from INFORMATION BUILDERS |
Moderator: | ZAYIUS::BROUILLETTE |
Created: | Thu Feb 19 1987 |
Last Modified: | Mon May 05 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 615 |
Total number of notes: | 1779 |
I am having a problem reinitializing a DEFINEd field to zero on a sort break. The DEFINEd field is a running total for each line of the report. I have tried to COMPUTE the running total on the sort break, but it still keeps accumulating throughout the entire report. Is there any way to reinitialize fields on sort breaks? Thanks for any help anyone can offer. Linda Metcalf
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
130.1 | reinit suggestions | FDCV01::MADDEN | Fri Sep 23 1988 18:40 | 7 | |
Without seeing the code I'm not exactly sure what you are trying to do; If its just subtotals you need then ofcause ON sortfield SUBFOOT "<ST.field" however it sounds more like you need the LAST function in a COMPUTE COMPUTE field = IF LAST sortfield NE sortfield THEN 0 ELSE whatever...... ; Every time the sortfield changes value the 'field' is set to 0 |