Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Focus commands Order of precedence

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Focus commands Order of precedence
 Login/Join
 
Gold member
posted
Trying to filter a JOIN based on a DEFINE field created earlier.

Is there an Order of precedence in which FOCUS commands are executed by WFRS?

Below code throughs Error message. Can anybody suggest what's wrong with below code?

  
DEFINE FILE CAR
profit/D12.2=CAR.BODY.RETAIL_COST - CAR.BODY.DEALER_COST;
END
JOIN
FILE CAR AT CAR.ORIGIN.COUNTRY 
TO MULTIPLE 
FILE CAR AT CAR.ORIGIN.COUNTRY TAG J0 AS J0
-*
WHERE J0.ORIGIN.COUNTRY EQ J0.ORIGIN.COUNTRY;
WHERE J0.BODY.profit GT 5000;
END


Thanks
TryFocus

This message has been edited. Last edited by: Kerry,


Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP
 
Posts: 82 | Location: Chicago | Registered: September 28, 2005Report This Post
Expert
posted Hide Post
Basics...

You should always issue your join prior to your define.

Also, I am not sure you can reference a defined field in a conditional join.

What is the error message ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
Thanks Waz. I was trying to implement this sort of logic using InfoAssist GUI. Can you suggest any work around to implement this as we are trying to achieve MATCH functionality.

Thanks
TryFocus.


Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP
 
Posts: 82 | Location: Chicago | Registered: September 28, 2005Report This Post
Expert
posted Hide Post
MATCH functionality is quite broad, what were you after exactly ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
Was trying to implement Above Posted code using InfoAssist GUI (No Editor).

(OR)

This Scenario in InfoAssist:
1. Couple of Defines on Table_1
2. Joining Table_1 to Table_2 on Real fields.
3. Join Filter condition on DEFINES based on Table_1.

Thanks


Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP
 
Posts: 82 | Location: Chicago | Registered: September 28, 2005Report This Post
<FreSte>
posted
Below you'll find The-12-Steps-Of-Table:

1.	WHERE's
2.	DEFINE's
3.	WHERE on DEFINE's
4.	SORT
5.	VERB (=PRINT or SUM)
6.	PREFIX OPERATORS (FST. LST. MAX. etc)
  	… internal matrix is ready at this point …
7.	COMPUTES
8.	WHERE TOTAL
9.	BY TOTAL
10.	GENERATE TOTALS / SUBTOTALS etc.
11.	RECAP's (based on subtotals)
12.	STYLING + OUTPUT

In general:
	WebFOCUS will offload as much as possible to the RDBMS
	If 1 step cannot be offloaded to the RDBMS
		that step will be solved by WebFOCUS
		all following steps from that point will be solved by WebFOCUS
	All steps after generating the Internal Matrix are always solved by WebFOCUS
 
Report This Post
Expert
posted Hide Post
quote:
The-12-Steps-Of-Table


Isn't this part of the training ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
I think you could fix the original join with the KEEPDEFINES = ON setting

Gary

quote:

KEEPDEFINES = ON
DEFINE FILE CAR
profit/D12.2=CAR.BODY.RETAIL_COST - CAR.BODY.DEALER_COST;
END
JOIN
FILE CAR AT CAR.ORIGIN.COUNTRY
TO MULTIPLE
FILE CAR AT CAR.ORIGIN.COUNTRY TAG J0 AS J0
-*
WHERE J0.ORIGIN.COUNTRY EQ J0.ORIGIN.COUNTRY;
WHERE J0.BODY.profit GT 5000;
END
 
Posts: 29 | Location: Seattle Washington | Registered: July 08, 2009Report This Post
Master
posted Hide Post
quote:
Originally posted by Waz:
quote:
The-12-Steps-Of-Table


Isn't this part of the training ?


I knew Focus was associated with a 12 step program.... That actually explains a lot.

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Expert
posted Hide Post
Some times there is step 13.



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
If I remember correctly "Step 13" involves an alcoholic beverage Smiler


Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3



 
Posts: 129 | Registered: June 01, 2005Report This Post
Member
posted Hide Post
By the way, the DEFINE for a conditional join must go first.
 
Posts: 29 | Location: Seattle Washington | Registered: July 08, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Focus commands Order of precedence

Copyright © 1996-2020 Information Builders