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.
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?
ThanksThis message has been edited. Last edited by: Kerry,
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.
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
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, 2005