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     [CLOSED] Text and Alphanumeric

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Text and Alphanumeric
 Login/Join
 
Master
posted
Hai

I am trying to join two tabled with common field but they are having different formats, alpha numeric (A20V) and text (TX50). Actually its a number. I converted A20V to I11 but could not succeed converting TX50 to either alphanumeric or integer.

Can someone help me on this?

And also..WF doesn't handle many-to-many join I believe. Is this right? Any alternative for this?

Thanks

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


8.1.05
HTML,PDF,EXL2K, Active, All
 
Posts: 484 | Registered: February 03, 2009Report This Post
Expert
posted Hide Post
This is what I would do. Convert the A20V to A20 and extract the data and hold it. Convert the TX50 to A20 and hold it. Join the two hold files together.

M:M can be done with MATCH FILE syntax.


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
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
If you're joining two tables using virtual fields (DEFINE), only the host table's field can be virtual, the cross-referenced tables field must be real.

Instead of trying to make both fields numeric, why not define a field in the host file to have the same format of the field in the cross-reference file?
HOST_ALPHA_JOIN_FIELD/TX50 = HOST_AV_FIELD;


Example of converting an AV field to TX - you require an intermediary alpha field:
DEFINE FILE CAR
CAR1/A20V = CAR;
CAR2/A20 = CAR1;
CAR3/TX50 = CAR2;
END

TABLE FILE CAR
PRINT 
CAR
CAR1
CAR2
CAR3
BY COUNTRY
END

CAR3 would be the host field to JOIN with the cross-reference field.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
For a many to many, you could use a conditional join, with out the condition.

http://documentation.informati.../source/topic158.htm


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
Expert
posted Hide Post
Good points Ginny, Francis, and Waz,
First, the concepts:
1) JOIN on COMMON FIELDS.
2) Different formats makes them NOT COMMON.
3) HOLD them, then JOIN them.
4) Consider the other suggestions above.
quote:
I am trying to join two tabled with common field but they are having different formats




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Master
posted Hide Post
I seem to remember that you can not sort or join on a TX field. So you will have to convert it to alphanumeric first.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report 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     [CLOSED] Text and Alphanumeric

Copyright © 1996-2020 Information Builders