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.
ok, I thought this was going to be a simple request, but I can't get it to work. I've searched the focal point and tried various things but I'm not getting what the business wants.
The business wants the rating at the top of the column as the column header (like it's displayed when I run the below) but instead of all of the titles being spaced apart (one title per line), they would like them compacted. So, in row 1, there will be a title in all 5 columns (G, NR, PG, PG13 and R). In row 2, there will also be something in all 5 columns and then as we run out of movies for a rating, then that column will be blank for that row.
BYTOC does what I need on the most part but puts the data in separate tabs (like it's designed to do). Basically I want what BYTOC does except keep it all in one tab. So, each tab would be a column on my spreadsheet.
SET NODATA = ' '
TABLE FILE MOVIES PRINT TITLE ACROSS RATING ON TABLE PCHOLD FORMAT EXL2K
Any thoughts?
We are on webfocus 7.6 now ... I need to update my signature.This message has been edited. Last edited by: Kerry,
When you do a matrix report like you want, you need to do a SUM with a BY and an ACROSS. Since you don't have a BY, you have to make one up.
SET NODATA = ' '
TABLE FILE MOVIES
PRINT
TITLE
COMPUTE CNTR/I4=IF RATING NE LAST RATING THEN 1 ELSE CNTR+1 ;
BY RATING
ON TABLE HOLD FORMAT ALPHA
END
TABLE FILE HOLD
SUM TITLE
BY CNTR NOPRINT
ACROSS RATING
END
SET NODATA=' '
DEFINE FILE MOVIES
G_COUNT/I9=IF RATING EQ 'G' THEN G_COUNT+1 ELSE G_COUNT;
PG_COUNT/I9=IF RATING EQ 'PG' THEN PG_COUNT+1 ELSE PG_COUNT;
PG13_COUNT/I9=IF RATING EQ 'PG13' THEN PG13_COUNT+1 ELSE PG13_COUNT;
R_COUNT/I9=IF RATING EQ 'R' THEN R_COUNT+1 ELSE R_COUNT;
NR_COUNT/I9=IF RATING EQ 'NR' THEN NR_COUNT+1 ELSE NR_COUNT;
COUNTER/I9=IF RATING EQ 'G' THEN G_COUNT ELSE
IF RATING EQ 'PG' THEN PG_COUNT ELSE
IF RATING EQ 'PG13' THEN PG13_COUNT ELSE
IF RATING EQ 'R' THEN R_COUNT ELSE
IF RATING EQ 'NR' THEN NR_COUNT ELSE 0;
END
TABLE FILE MOVIES
SUM
TITLE
ACROSS RATING
BY COUNTER NOPRINT
END
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Always makes smile smile when I see something like this - pretty simple request, 1001 different approaches to get the same answer!
The key, as Ginny says, is the SUM verb with a BY and an ACROSS - which you can see, all these use.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
thank you! That worked like a charm. I had something almost identical on Thursday but didn't have the sum I'm guessing because I didn't get these results. Now it's perfect. Thanks.