Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Using Data as Header for ACROSS

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Using Data as Header for ACROSS
 Login/Join
 
Guru
posted
Hi all -

I have a report that kinda looks like this:
TABLE FILE CAR
PRINT
DEALER_COST
RETAIL_COST
SALES
BY COUNTRY
ACROSS BODYTYPE
ON TABLE PCHOLD FORMAT EXL2K
END

The business wants to output the report to an Excel spreadsheet so they can in turn run other processes on it. But, they require that the Bodytype value appear on the header line for EACH print column as opposed to the Bodytype value spanning all three print columns. See desired output below:

COUNTRY COUPE COUPE COUPE HARDTOP
DEALER_COST RETAIL_COST SALES DEALER_C
------- ----------- ----------- ----- --------
ENGLAND 9,999.99 9,999.99 999 9,999.99

Notice Coupe appear on all three print columns, then Hardtop appears on the next 3 columns, etc. (Can't show the rest since the text wraps).

I tried doing this
PRINT DEALER_COST AS '
but, it didn't work.

Any suggestions?


WF 8.1.05 Windows
 
Posts: 333 | Location: Orlando, FL | Registered: October 17, 2006Report This Post
Virtuoso
posted Hide Post
what WF version do you work with?




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Expert
posted Hide Post
DEFINE FILE CAR
BODYTYPE_TEXT/A10 = 'BODYTYPE';
END
TABLE FILE CAR
PRINT
DEALER_COST
RETAIL_COST
SALES
BY COUNTRY
ACROSS BODYTYPE AS ''
ACROSS BODYTYPE_TEXT AS ''
ON TABLE PCHOLD FORMAT EXL2K
END


If it's acceptable to have the text 'BODYTYPE' under instead of over the BODYTYPE, then here's a quick and dirty solution which hopefully works for your real-world problem.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
I'm on 7.1.4

Francis -
Excellent suggestion, except, the ACROSS value still spans across all three fields. I was hoping the ACROSS value will appear on EVERY print column.


WF 8.1.05 Windows
 
Posts: 333 | Location: Orlando, FL | Registered: October 17, 2006Report This Post
Expert
posted Hide Post
do it the hard way
use HEADALIGN=BODY
and make a HEADER line with COLSPAN
HEADING
"<+0> nothing <+>bodytype<+0>bodytype<+>bodytype"
TYPE=HEADING,LINE=1,ITEM=1,COLSPAN=6,$
TYPE=HEADING,LINE=1,ITEM=2,COLSPAN=1,$
...etc
tinker around till you get this header row to behave like you want it to.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Guru
posted Hide Post
quote:
Originally posted by Piipster:
FILEDEF FSEQ DISK C:\IBI\APPS\BASEAPP\FSEQ.MAS
-RUN
JOIN BLANC WITH DEALER_COST IN CAR TO CONTROL IN FSEQ AS J1
DEFINE FILE CAR
BLANC/A1 = ' ';
DISP_VALUE/D9 = IF COUNTER EQ 1 THEN DEALER_COST
ELSE IF COUNTER EQ 2 THEN RETAIL_COST
ELSE SALES;
DISP_TITLE/A12 =
IF COUNTER EQ 1 THEN 'DEALER_COST'
ELSE IF COUNTER EQ 2 THEN 'RETAIL_COST'
ELSE 'SALES';
END
TABLE FILE CAR
SUM
DISP_VALUE AS ''
BY COUNTRY
ACROSS BODYTYPE AS '' NOPRINT
ACROSS COUNTER NOPRINT
ACROSS BODYTYPE AS ''
ACROSS DISP_TITLE AS ''
WHERE COUNTER LE 3;
ON TABLE PCHOLD FORMAT EXL2K
END



...and the FSEQ.MAS ...
FILE=FSEQ, SUFFIX=FIX, DATASET=FSEQ.MAS
SEGNAME=SEG1, SEGTYPE=S1, $
FIELD=CONTROL, ALIAS=BLANK, USAGE=A1, ACTUAL=A1, $
SEGNAME=SEG2, SEGTYPE=S1, PARENT=SEG1, OCCURS=VARIABLE, $
FIELD=WHATEVER, ALIAS=WHATEVER, USAGE=A1, ACTUAL=A1, $
FIELD=COUNTER, ALIAS=ORDER, USAGE=I4, ACTUAL=I4, $


Make sure there is a space before the word FILE


ttfn, kp


Access to most releases from R52x, on multiple platforms.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Using Data as Header for ACROSS

Copyright © 1996-2020 Information Builders