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.
Hi, Hoping this is an easy one.. I defined a field in car file called SEATSA, it is simply spelling out each of the seats: SEATSA/A5=IF SEATS EQ 2 THEN 'TWO' ELSE IF SEATS EQ '4' THEN 'FOUR' ELSE 'FIVE';
I now want to count seats BY CAR BY SEATSA, but I want to see all of the SEATSA values for each CAR. For example for Alpha Romeo I want to see FIVE count 0, FOUR Count 1, TWO Count 2.
Here is my code:
DEFINE FILE CAR
SEATSA/A12=IF SEATS EQ 2 THEN 'TWO' ELSE IF SEATS EQ '4' THEN 'FOUR' ELSE 'FIVE';
END
TABLE FILE CAR
SUM CNT.SEATS
BY CAR
BY SEATSA
WHERE CAR EQ 'ALFA ROMEO';
END
I am not getting the value of FIVE of course, since 5 does not exist for Alpha Romeo. How do I show FIVE and have a count of 0?
Thank you.This message has been edited. Last edited by: nickz,
DEFINE FILE CAR
SEATS_2/I2= IF SEATS EQ 2 THEN 1 ELSE 0;
SEATS_4/I2= IF SEATS EQ 4 THEN 1 ELSE 0;
SEATS_5/I2= IF SEATS EQ 5 THEN 1 ELSE 0;
END
TABLE FILE CAR
SUM CAR NOPRINT
SEATS_2 AS 'TWO'
SEATS_4 AS 'FOUR'
SEATS_5 AS 'FIVE'
BY CAR
END
Posts: 90 | Location: Oklahoma City, Oklahoma | Registered: July 01, 2010
SET NODATA = 0
TABLE FILE CAR
SUM CNT.SEATS
BY CAR
BY SEATS AS 'SEATS' ROWS 2 AS 'TWO' OVER 3 AS 'THREE' OVER 4 AS 'FOUR' OVER 5 AS 'FIVE'
WHERE CAR EQ 'ALFA ROMEO';
END