Focal Point
[CLOSED] Report Format Question

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/879101022

August 25, 2009, 01:02 PM
dz
[CLOSED] Report Format Question
I have the following report format:

.........COLA...COLB...COLC....COLD
BYA
BYB

What I need is:

.........COLA...COLB
BYA
BYB

.........COLC...COLD
BYA
BYB


All columns have different formats.

Can it be done with in one pass? please help.

This message has been edited. Last edited by: Kerry,
August 25, 2009, 02:21 PM
Doug
Sure that can be done...

One way to do it is: Start off with / DEFINE a primary sort field and DEFINE those COLx fields into "buckets". Then sort BY your promary sort fields NOPRINTed.

Can you create an expample, and post the code) of what you want using the CAR or EMPLOYEE files? That would be most helpful to us all and allow us to help you even better then this...




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
August 27, 2009, 03:37 PM
dz
Here is an example of what I need:

Before change:

COUNTRY.....MAKER......MODEL
Japan..........Toyota.....Corolla
Germany.....BMW........300i


After change: (producing one report)

COUNTRY.....MAKER
Japan..........Toyota
Germany.....BMW

COUNTRY.....MODEL
Japan..........Corolla
Germany.....300i

The question can I produce this kind of split in one report?
August 27, 2009, 03:58 PM
Francis Mariani
Here's one way...

SET HOLDLIST=PRINTONLY
SET ASNAMES=ON
SET BYDISPLAY=ON
SET PAGE=NOLEAD

TABLE FILE CAR
PRINT CAR/A24 AS 'COL1'
COMPUTE SORT1/A5 = 'MAKER';
BY COUNTRY
ON TABLE HOLD AS H001
END

TABLE FILE CAR
PRINT MODEL AS 'COL1'
COMPUTE SORT1/A5 = 'MODEL';
BY COUNTRY
ON TABLE HOLD AS H002
END

TABLE FILE H001
PRINT
COL1 AS ''
BY SORT1 NOPRINT
BY COUNTRY AS ''

ON SORT1 SUBHEAD
"COUNTRY <SORT1"
ON SORT1 SUBFOOT
" "
ON TABLE SET STYLE *
TYPE=SUBHEAD, HEADALIGN=BODY, STYLE=BOLD, $
ENDSTYLE
MORE
FILE H002
END




Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server