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.
To get the output that you would like, you will have to use the ACROSS phrase as Waz mentions, but you will have to do a little extra processing to achieve your final output.
Consider this -
TABLE FILE CAR
LIST RCOST
BY COUNTRY
BY CAR
ON TABLE HOLD AS TEMPHLD1
END
TABLE FILE TEMPHLD1
SUM CAR
RETAIL_COST
BY LIST NOPRINT
ACROSS COUNTRY
END
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Tony, Can I put a Subheading, I mean sub-sectioning these rows further and change the column titles based on the Company name column? 10 20 30 Comp1 St date comp1 St date Tom 01/01/09 Lee 01/13/09 Tim 02/12/08 Comp2 End Date Comp2 End Date Jim 01/23/06 Joe 03/01/07
Thanks, DD
WebFocus 7.7.01 Desktop: Windows and Server: Unix Excel, HTML, PDF
You'll not get exactly like that unless you handle the data multiple times and, unless you have a desparate reason to get exactly that output, I would settle for something like this -
APP PREPENDPATH IBISAMP
DEFINE FILE EMPDATA
NAME/A26 = FIRSTNAME || (' ' | LASTNAME);
END
TABLE FILE EMPDATA
SUM HIREDATE/DMYY
COMPUTE LIST/I9 = IF DEPT NE LAST DEPT THEN 1 ELSE
IF DIV NE LAST DIV THEN 1 ELSE LAST LIST + 1;
BY DEPT
BY DIV
BY NAME
WHERE DEPT IN ('MARKETING','PERSONNEL','SALES')
WHERE DIV NE 'CORP'
ON TABLE HOLD AS TEMPHLD1
END
TABLE FILE TEMPHLD1
SUM NAME
HIREDATE
BY DIV NOPRINT
BY LIST NOPRINT
ACROSS DEPT AS ''
ON DIV SUBHEAD
"Division <DIV"
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
GRID=OFF, SIZE=9, $
TYPE=REPORT, COLUMN=NAME(*), BORDER-LEFT=LIGHT, BORDER-RIGHT=OFF, $
TYPE=REPORT, COLUMN=HIREDATE(*), BORDER-RIGHT=LIGHT, $
TYPE=REPORT, ACROSSCOLUMN=DEPT, BORDER-RIGHT=LIGHT, $
TYPE=SUBHEAD, BORDER-BOTTOM=LIGHT, $
ENDSTYLE
END
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004