July 18, 2005, 03:44 PM
Francis MarianiACROSS COLUMNS and COMPUTE
I would like to specify the columns in an ACROSS statement and have a COMPUTE right after. This does not seem to be possible. Any ideas?
TABLE FILE CAR
SUM
SALES AS ''
DCOST NOPRINT
BY COUNTRY
ACROSS SEATS AS '' COLUMNS 2 AND 3 AND 4 AND 5 AND 6
COMPUTE TOT_COST/D15 = DCOST; AS 'TOTAL,COST'
END
Thanks.
July 18, 2005, 06:37 PM
Francis MarianiTABLE FILE CAR
SUM
COMPUTE TOT_COST/D15 = DCOST;
AS 'TOTAL,COST'
BY COUNTRY
SUM
SALES AS ''
DCOST NOPRINT
BY COUNTRY
ACROSS SEATS AS '' COLUMNS 2 AND 3 AND 4 AND 5 AND 6
ON TABLE SET STYLE *
TYPE=REPORT, COLUMN=TOT_COST, SEQUENCE=99, $
END
This does the trick. Even though, according to the manual, SEQUENCE is for PDF and PS only.
July 18, 2005, 06:42 PM
PrarieOh...What do manuals know?
July 19, 2005, 01:04 PM
<DocServices>Hi Francis,
Which manual are referring to?
SEQUENCE works with PDF, PS, HTML, and EXL2K, which is documented in the following manuals:
- Creating Reports With WebFOCUS Language Version 7.1 (DN4500695.0505)
- Creating Reports With WebFOCUS Language Version 5.3 (DN4500580.0904)
I hope this helps.
Best,
Jennifer
July 19, 2005, 01:39 PM
Francis MarianiI do not see HTML or EXCEL 2000 mentioned with SEQUENCE in my copy of this document:
Creating Reports With WebFOCUS Language
Version 5 Release 3 - DN4500580.0904 - wf_crlang_53.pdf
Page 26-19:
quote:
SEQUENCE Sets column order. PDF PS
Page 26-27:
quote:
This syntax applies to a PDF or PS report.
[TYPE=REPORT,] COLUMN=identifier, SEQUENCE=sequence, $
July 19, 2005, 02:03 PM
<DocServices>Hi Francis,
Thanks for catching that! We will update the PDF file to reflect the changes.
In the meantime, you can refer to the HTMLHelp file which is correct.
The updated PDF file for
Creating Reports With WebFOCUS Language Version 5 Release 3(DN4500580.0904), will be reposted in a few days.
Sorry for any confusion this may have caused.
Best,
Jennifer