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're trying to implement the DBA functionality on a simple master file. (no joins) and we're running into an error of
(FOC053) DBA ERROR. INVALID ATTRIBUTE IN MASTER FILE: SALESPERSON_NUM EQ '193' OR '4407' OR '4602' OR '3873' OR '3866' OR '3872' OR '3222' BYPASSING TO END OF COMMAND
Here's the line... USER=JKELLY, ACCESS=RW, ACCESS=R, RESTRICT=VALUE, NAME=SYSTEM, VALUE=SALESPERSON_NUM EQ '193' OR '4407' OR '4602' OR '3873' OR '3866' OR '3872' OR '3222' ,$
The line works fine until we add the 6th salesperon_num to the OR. If we take off the "OR '3222'" it works as expected.
Is there a limitation to the number of OR's you can have, or maybe there's a better way to do what we're trying to do here.
Thanks!This message has been edited. Last edited by: <Emily McAllister>,
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
thanks for the tip tony! we were never able to get an IN statement to work without syntax errors, we figured it had something to do with it being a DBA setup rather than an actual where clause.
Is there a way to use an IN in a DBA?
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
when your values span multiple lines you need to repeat value=or on each line
example:
PASS=SHIPPENK, ACCESS=R, RESTRICT=VALUE, NAME=CT_LOC, VALUE=EC_CSTRING EQ 'GCH' OR 'GEO' OR 'GIB',$ VALUE=OR 'GLO' OR 'GRS' OR 'GSV' OR 'GVM' OR 'GWS',$
WF 8 version 8.2.04. Windows. In focus since 1990.
Posts: 189 | Location: pgh pa | Registered: October 06, 2004
USER=JKELLY, ACCESS=RW, ACCESS=R, RESTRICT=VALUE, NAME=SYSTEM, VALUE=SALESPERSON_NUM EQ '193' OR '4407' OR '4602' OR '3873' OR '3866' OR '3872' ,$ VALUE=OR '3222' ,$
WF 8 version 8.2.04. Windows. In focus since 1990.
Posts: 189 | Location: pgh pa | Registered: October 06, 2004
If Spence brought the solution then that's ok otherwise.
Create a small select fex that you can include in the others.
TABLE FILE USERS
PRINT SALESPERSON_NUM
WHERE USERCODE EQ '&LOGINID';
ON TABLE HOLD AS HSALENUM FORMAT ALPHA
END
-RUN
..
put an escape if the number of records is zero. and display a functional message
Then you include the line
WHERE (SALESPERSON_NUM IN FILE HSALENUM) ;
In each fex where you need this..
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
I believe there is a limitation on how long a line in a master file can be. You may need to wrap your restriction. I use DBA Security extensively, unfortunately I've never run into this issue before.
On another note, there is a bug in 8105 when using DBA security and Clustered Master Joins. I would run some sql traces once you get this running to be sure that you are getting the expected results before moving this to a production system.
Eric Woerle 8.1.05M Gen 913- Reporting Server Unix 8.1.05 Client Unix Oracle 11.2.0.2
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013
Thanks. I think I have found the issue. In the FILEDEF I had (LRECL 81 . I changed 81 to 800 and it seems to have fixed the issue. I think the limitation is 4000. I guess I will have to figure something better out.
WebFOCUS 8202M
Posts: 167 | Location: Montreal | Registered: September 23, 2014