Focal Point
[CLOSED] Join - Define field in hold file aginst define field in RDBMS

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/47110262

March 02, 2009, 05:27 AM
Gopal
[CLOSED] Join - Define field in hold file aginst define field in RDBMS
How to make a join, using a define field (concatenation of three fields) in the Hold file(FOCUS DB) against a define file in RDBMS

Please advice....

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


WebFOCUS 769, Windows XP platform and Output formats: HTML,excel, PDF
March 02, 2009, 09:29 AM
GinnyJakes
As mentioned in a previous post to you, this is not a recommended technique as it is VERY inefficient.

Table against the RDBMS including the defined field and HOLD FORMAT FOCUS INDEX def_field. Make sure that you include any appropriate WHERE clauses.

Join the HOLD file to the held FOCUS file.

If you try to do what you said you wanted to do, WebFOCUS will wind up doing the join.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
March 02, 2009, 10:53 AM
Darin Lee
You cannot join TO a defined field. You must join to a real field in the cross-reference (i.e. joined TO) file. Some DBs allow for joining to the first part of an alpha key field so you don't have to match the whole key value. Other than that, you have to do all your defining in the host file. Ginny has given you the best way to do what you seem to need.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat