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.
I have a procedure that drills to another using FML account numbers. In some rows, the accounts are defined and separated with "OR", in others, it's a range separated by "TO". I'm trying to find something i can use in a where clause that works for both expressions. I'm using an FMLLIST to break accounts in an ADD ALL row, but it doesn't do the same in the "TO" range rows. Some rows have a mix of ORs and TOs which exausted my little FOCUS code knowledge.
Here is sample of the rows i'm drilling on:
=========================== COMPUTE LOOKUP/A2 = 'LU'; AS 'LU' COMPUTE C_FMLFOR/A18 = FMLFOR('A18'); NOPRINT COMPUTE C_DDFLAG/A1 = IF C_FMLFOR EQ MISSING THEN '' ELSE 'A'; NOPRINT COMPUTE C_FMLLIST/A500 = FMLLIST('A500'); NOPRINT COMPUTE C_FMLCAP/A50 = FMLCAP('A50'); NOPRINT FOR 'ACCTTREE.SEG01.CHILD' ' 4101' TO ' 4201 9 99 999' AS CAPTION LABEL R1 NOPRINT OVER "Sales" LABEL R2 OVER ' 4101 1' ADD ALL AS 'Sales - Deli' LABEL R3 WHEN EXISTS OVER ' 4101 2' ADD ALL AS 'Sales - Bakery' LABEL R4 WHEN EXISTS OVER ' 4101 3' ADD ALL AS 'Sales - Grocery' LABEL R5 WHEN EXISTS OVER ' 4101 6' TO ' 4101 89999' AS 'Sales - Seafood/Meat' LABEL R8 WHEN EXISTS OVER BAR AS '-' OVER "Gross Profit" LABEL R14 OVER ' 4101 1' TO ' 4101 1 800' OR ' 4501 1 1' OR ' 5101 1' TO ' 5101 1 800' OR ' 5101 1 1' TO ' 5101 1 1 800' AS 'Gross Profit - Deli' LABEL R15 WHEN EXISTS OVER
============================
The Where statement in the Drill To procedure:
WHERE ( ACCTTREE.SEG01.CHILD EQ &ACCOUNT);
Hope this makes sense.This message has been edited. Last edited by: Kerry,
version 8202M Reporting Server on Windows Server using DB2 Connect to access data from iseries.
This simple FML fex illustrates how FMLLIST does not live up to what it promises, "FMLLIST returns a string containing the complete tag list for each row in an FML request":
TABLE FILE LEDGER
SUM
AMOUNT
COMPUTE LIST1/A36 = FMLLIST('A4096V');
FOR ACCOUNT
'1000' TO '1060' OR '1099' AS 'PART 1' OVER
'1100' TO '1299' AS 'PART 2'
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
I would think you need to break down and just do some hard coding here. Since you have to manually code a drill-through anyway on each of the FOR items, why don't you do something like this: