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.
This, assume you are going to use the in file option of where.
Technical Documentation search
-------------------------------------------------------------------------------- Top of page --------------------------------------------------------------------------------
Reference: Usage Notes for Reading Values From a File In order to read selection criteria from a file, the file must comply with the following rules:
Each value in the file must be on a separate line. For IF, more information can appear on a line, but only the first data value encountered on the line is used.
The selection value must start in column one. The values are assumed to be in character format, unless the file name is HOLD, and numeric digits are converted to internal computational numbers where needed (for example, binary integer). 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. For WHERE, alphanumeric values with embedded blanks or any mathematical operator (-, +, *, /) must be enclosed in single quotation marks. For WHERE, when a compound WHERE phrase uses IN FILE more than once, the specified files must have the same record formats. If your list of literals is too large, an error is displayed.
For IF, sets of file names may be used, separated by the word OR. Actual literals may also be mixed with the file names. For example: IF fieldname operator (filename) OR literal...etc...
Leah
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004
If you have that many accounts to select, use WHERE IN FILE file-name making sure that the file falls within the restrictions Leah posted. As well, in my experience, when the WebFOCUS code gets translated to SQL, SQL usually has a limit of 1000 entries in a WHERE statement: WHERE ACCOUNT_NBR IN (123, 456, 789, ...);
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
The answer to that question is that there is a maximum of 1024 &variables. But, this is the absolute maximum, including the system &vars (25 of them), and not counting &vars that exceed 32K in length.
So, the answer is not a fixed number, but rather it can be calculated using the following formula:
1024 - <25 for FOCUS> - <# of variables that exceed 32k> = # variables available.
This information is valid for WebFOCUS version 533, it may have been increased already....
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Thanks for that GamP. We've tested up to 500 amper variables being passed and everything seemed to work ok. Its good to know that we've got alot of scope to work with.
Many Thanks
DevStudio 7.6.1. SQL Server 2005
Posts: 31 | Location: Basingstoke - England | Registered: September 17, 2007
Another possibility to consider would be to get those values inserted into a table on your database and join to that table in your report...
Depending on your situation this may or may not be feasible.
Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio Testing: <none> Using MRE & BID.  Connected to MS SQL Server 2005 Output Types: HTML, Excel, PDF