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.
With BYDISPLAY=OFF, it shows the COUNTRY, CAR, and MODEL data only when the corresponding data changes.
With BYDISPLAY=ON, it shows all data on every line.
What I'm looking for is different. I want it to be just like BYDISPLAY=OFF, except that I want COUNTRY data to show when either the COUNTRY data changes or the CAR data changes.
TABLE FILE CAR
PRINT SEATS
BY COUNTRY
BY CAR
BY MODEL
ACROSS BODYTYPE
ON TABLE HOLD AS HCAR
END
?FF HCAR
TABLE FILE HCAR
PRINT
COMPUTE N_COUNTRY/A20 = IF CAR EQ LAST CAR THEN '' ELSE COUNTRY; AS 'COUNTRY'
COMPUTE N_CAR/A16 = IF CAR EQ LAST CAR THEN '' ELSE CAR; AS 'CAR'
MODEL
E04 AS 'CONVERTIBLE'
E05 AS 'COUPLE'
E06 AS 'HARDTOP'
E07 AS 'ROADSTER'
E08 AS 'SEDAN'
END
Different technique where you don't have to care about the ACROSS alias and value (E04, E05, ...) which you may not know and may change depending on the number of ACROSSed value in the Hold file (reason why Pku have used the &FF HCAR to know how many have been hold).
DEFINE FILE CAR
CNTRYID/I2 = IF CAR EQ LAST CAR THEN CNTRYID ELSE CNTRYID + 1;
N_CNTRY/A20 = IF CAR EQ LAST CAR THEN '' ELSE COUNTRY;
CARID /I2 = IF CAR EQ LAST CAR THEN CARID ELSE CARID + 1;
N_CAR /A16 = IF CAR EQ LAST CAR THEN '' ELSE CAR;
END
TABLE FILE CAR
SUM SEATS
BY COUNTRY NOPRINT
BY CNTRYID NOPRINT
BY HIGHEST N_CNTRY AS 'COUNTRY'
BY CARID NOPRINT
BY HIGHEST N_CAR AS 'CAR'
BY MODEL
ACROSS BODYTYPE AS ''
END
-RUN
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
. . . BY COUNTRY NOPRINT BY CAR NOPRINT BY COUNTRY BY CAR BY MODEL . . .
Whenever a sort (BY) object has a sort-break, so do all the lower-level sort objects. So if our #1 or #2 (COUNTRY, CAR) changes, #3 through #5 will be displayed.
There is no need to keep the sort object names distinct, and thus no need for Define -- unless you want to reference the second COUNTRY or CAR columns by name in ON phrases or in STYLE.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Doug, in a previous post, says, "Whatever they want. Heck Yeah, We can do that in WebFOCUS! " I started working with WebFocus about 4 years ago. As a "novice", I was often dismayed by its complexity. About 3 months ago, I graduated to "beginner" by creating several very complex reports. It's then that I started believing Doug's adage. This report was the most complex yet. And I really got stumped with the problem I described in this thread. Now, even more, I believe what Doug says. Not only that ... I really appreciate this forum.
...I started working with WebFocus about 4 years ago. As a "novice", I was often dismayed by its complexity. About 3 months ago, I graduated to "beginner" by creating several very complex reports. It's then that I started believing Doug's adage...