Hi there,
This report gives row totals but when I add in code for column totals, the report keeps running forever and never completes. I have checked the stylesheet and it allows for GRANDTOTAL like this: "TYPE = GRANDTOTAL, STYLE=BOLD, $"
I have even tried to explicitly declare the GRANDTOTAL at the end of the code but nothing works as seen in there.
The code looks like this:
JOIN
DIN_NO IN BASEINFO TO DIN_NO IN CODE9CONDITION AS J0
END
JOIN
CODE9_SUBCODE IN BASEINFO TO CODE9_SUBCODE IN XREFCODE9 AS J1
END
DEFINE FILE BASEINFO
CONTROL_YEAR/I4 = &CONTROL_YEAR;
CONTROL_MD/I4 = 1231;
CONTROL_YMD/I8YYMD = EDIT(EDIT(CONTROL_YEAR) || EDIT(CONTROL_MD));
ASAT_DATE/MtDYY = CONTROL_YMD;
GENDER/A6 = IF GENDER EQ 'M' THEN 'Male' ELSE 'Female';
END
TABLE FILE BASEINFO
SUM
CNT.GENDER/I7CS
BY
CODE9_SUBCODE AS 'Subcode'
BY
CODE9_SUBDESCENG AS 'Description'
ACROSS
GENDER AS ''
HEADING
"Driver Control Statistics"
" "
FOOTING
"Report ID: DCS-&REPORT_ID "
ON TABLE SUBFOOT
" "
"NOTE: Report counts of licensed drivers:
WHERE (ACTIVE_DRIVER EQ 'A');
WHERE (AGE GT 15);
WHERE (HAND_CONTROL EQ 'Y' OR GLASSES EQ 'Y' OR ZENDORSEMENT EQ 'Y');
WHERE (LIC_CLASS_CODE NE MISSING);
WHERE READLIMIT EQ 100
WHERE RECORDLIMIT EQ 100
ON TABLE SET PAGE-NUM OFF
ON TABLE ROW-TOTAL AS 'Total'
ON TABLE NOTOTAL
ON TABLE SET ONLINE-FMT PDF
ON TABLE SET CSSURL '/approot/mtomis/report.css'
ON TABLE SET STYLE *
-GOTO STY_&WFFMT
-GOTO STY_PDF
-*
-STY_HTML
-STY_EXL2K
-MRNOEDIT -INCLUDE STYLE01
-GOTO STY_END
-*
-STY_PDF
-MRNOEDIT -INCLUDE DCSSTYLE02
-*
-STY_EXCEL
-STY_END
TYPE=REPORT,
COLUMN=N2,
WRAP=6.105556, $
$TYPE=REPORT, ACROSSCOLUMN=N3, STYLE=BOLD, $
$TYPE=REPORT, ACROSSCOLUMN=N4, STYLE=BOLD, $
$TYPE=REPORT, COLUMN=N3, SIZE=11, $
$TYPE=REPORT, COLUMN=N4, SIZE=11, $
$TYPE=GRANDTOTAL, ACROSS=N3, STYLE=BOLD, $
$TYPE=GRANDTOTAL, ACROSS=N4, STYLE=BOLD, $
$TYPE=GRANDTOTAL, COLUMN=N3, SIZE=11, $
$TYPE=GRANDTOTAL, COLUMN=N4, SIZE=11, $
$TYPE=GRANDTOTAL, STYLE=BOLD, $
ENDSTYLE
END
-LO39_END
-END_DCS_L03
Thank you.
WF V7.7.03
Platform: AIX 6.1 64-bit, WinXP, IE 8.0
Output Formats: Html, Pdf, Excel