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 want to filter by a given set of account numbers. The unique set numbers about 4000. Can I attach a text/spreadsheet file to a WHERE statement so I can filter on those 4000 unique numbers? How do I do it?This message has been edited. Last edited by: Kerry,
Documentation > Creating Reports With WebFOCUS Language > Selecting Records for Your Report > Reading Selection Values From a File
These two usage notes are important:
quote:
# For IF, the total of all files can be up to 32,767 literals, including new line and other formatting characters. Lower limits apply to fixed sequential and other non-relational data sources. # For WHERE, the file can be approximately 16,000 bytes. If the file is too large, an error message displays.
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
You have to FILEDEF the file and it must be on the server:
FILEDEF SELECT1 DISK SELECT1.TXT
-RUN
-WRITE SELECT1 ENGLAND
-WRITE SELECT1 JAPAN
TABLE FILE CAR
SUM SALES
BY COUNTRY
IF COUNTRY EQ (SELECT1)
END
FILEDEF SELECT1 DISK SELECT1.TXT
-RUN
-WRITE SELECT1 ENGLAND
-WRITE SELECT1 JAPAN
TABLE FILE CAR
SUM SALES
BY COUNTRY
WHERE COUNTRY IN FILE SELECT1
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
Since you do not provide an Application or Directory path, this FILEDEF allocates the file to the temporary directory.
My example might have been misleading - I was creating my filter file "on the fly", hence the temporary directory was OK. Your filter file already exists somewhere - you have to point the FILEDEF to it:
FILEDEF EOCS DISK d:\dir1\dir1a\EOCS.PRN
or
FILEDEF EOCS DISK baseapp/EOCS.PRN
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
OK, I found my problem. The query was reading off the server and the filedef was pointing to my local. I had to copy the file to the server and then do the filedef. Thanks for your help!