Focal Point
[CLOSED] Force column break in Excel2K report from SUBFOOT

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

September 15, 2011, 02:16 PM
Robin
[CLOSED] Force column break in Excel2K report from SUBFOOT
Is there a way in SUBFOOT code to force a field calculation to be in a separate column when the report runs in Excel. Essentially - I want to code in a tab.

Here's a sample from the SUBFOOT:
"Total Participants:
I have several summary lines in the SUBFOOT, which all end in ST. calcs on various fields.

Right now it comes out on the report as:

Total Participants: 50
Total Days in program: 1050

All on one line, so the subtotals can't be used for further calculations without manually cutting and pasting them into distinct cells.
I want it to be:

Total Participants: 50
Total Days in program: 1050

etc.

Thanks

This message has been edited. Last edited by: Kerry,


WF 7.7.03
Win 2003 & AIX
PDF, html, Excel, xml
September 15, 2011, 02:31 PM
Robin
Sorry, my code got truncated...new to posting:

 "Total Participants: <ST.STAT_CNT" 



WF 7.7.03
Win 2003 & AIX
PDF, html, Excel, xml
September 15, 2011, 03:49 PM
ERINP
Robin,
I'm not sure what you are asking as the output appears to be the same as what you want it to be.


WebFOCUS 7.6.9

Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5
Reporting Server OS/400 V5R4M0
Outputs: HTML, Excel, PDF, CSV, and Flat Files
September 15, 2011, 03:59 PM
Robin
I'm outputting to Excel and as the code stands now it's giving me a single cell in Excel with my text label and my calculated result.

I want to have the text label in Column A and the calculated result in Column B in the Excel report.


WF 7.7.03
Win 2003 & AIX
PDF, html, Excel, xml
September 15, 2011, 04:10 PM
Robin
Better example:

What I want...

COLUMN A COLUMN B
Total Participants 50

What I get now...
COLUMN A
Total Participants 50


WF 7.7.03
Win 2003 & AIX
PDF, html, Excel, xml
September 15, 2011, 04:13 PM
Tom Flynn
TYPE=SUBFOOT(or WHATEVER), HEADALIGN=BODY, STYLE=BOLD,$

Search on HEADALIGN...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
September 16, 2011, 04:16 PM
ERINP
Below is some sample code that places subfoot description in colA and the value in colB:
  TABLE FILE CAR
SUM
     'CAR.BODY.BODYTYPE'
     'CAR.SPECS.MPG'
     'CAR.BODY.SEATS'
     'CAR.BODY.SALES/P11.2C'
     COMPUTE TOT_SALES/P11.2CM = TOT.SALES; NOPRINT
     COMPUTE TOT_SALE2/P11.2CM = TOT.SALES; NOPRINT
     COMPUTE TOT_SALE3/P11.2CM = TOT.SALES; NOPRINT
BY 'CAR.ORIGIN.COUNTRY'
BY 'CAR.CARREC.MODEL'
-*WHERE COUNTRY = 'ENGLAND';
ON CAR.ORIGIN.COUNTRY SUBFOOT
-*remove the "" below to remove the bank line in the Subfoot
""
-*remove all of the spotmarkers <+0> below to get the colA and colb look and feel
" <+0> <+0> <+0> SUBFOOT1 LINE2 COUNTRY <+0> <ST.CAR.BODY.SALES"
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
$
TYPE=SUBFOOT,
     STYLE=BOLD,
     JUSTIFY=RIGHT,
     HEADALIGN=BODY,
$
ENDSTYLE
END



WebFOCUS 7.6.9

Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5
Reporting Server OS/400 V5R4M0
Outputs: HTML, Excel, PDF, CSV, and Flat Files