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.
We are having some issues with distinct producing double values when we say the format is ALPHA.
Here is the code for the distinct.
TABLE FILE REPORT PRINT DST.REINSROW BY HIGHEST REINS_YR_ID NOPRINT ON TABLE HOLD AS FREINS FORMAT ALPHA END
Documentation claims that it is suppose to work like the SQL distinct command, which makes sense. However, in this example, the resulting file will have two values for each occurrence. For example:
2006 2006 2005 2005 etc.
If you switch the format type to TAB, instead of ALPHA, it works as it is suppose to. However, according to documentation, the TAB format has a 32k file size limit, which could cause problems. In order to use the ALPHA format, which apparently doesn't have size restrictions, the following code must be used.
TABLE FILE REPORT SUM REINSROW BY HIGHEST REINS_YR_ID NOPRINT ON TABLE HOLD AS FREINS FORMAT ALPHA END
I have come to the conclusion that we will have to use the second set of code (although the sum command varies drastically from the SQL sum command, which won't work on alphanumeric fields), however, I would like to understand why the first set of code doesn't work like one would think.
Wayne, you've stumbled across one of the very coolest features of focus, the ability to sum alphabetic fields, which you can't do in an excel pivot table, you can't do in access; for example, you can produce a cross table of sales rep's names by client across region and you would get the name of the current sales rep in each cell of your matrix. (assuming your db was in date order). There are a zillion uses of this unique feature. In your example TABLE FILE REPORT BY HIGHEST REINS_YR_ID NOPRINT BY REINSROW ON TABLE SET HOLDLIST PRINTONLY ON TABLE HOLD AS whatever END should do the job nomatter what the output format
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Thanks for the reply. But do you know why it behaves this way? Was this intentional and why does it cause a duplicate if we choose ALPHA as the format?
Also, what does the ON TABLE SET HOLDLIST PRINTONLY command do?
difference between PRINT and SUM, most likely. PRINTONLY is a nice trick when your fex has no verbs, just BY fields, PRINTONLY prevents the assumed verb object field from showing up in the generated HOLD file. All that is greek, i'll bet , so the best thing to do is just try it, HOLD the output and then look at the generated master file for that output.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003