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] Multi-Field JOIN doesn't print child data

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Closed] Multi-Field JOIN doesn't print child data
 Login/Join
 
Platinum Member
posted
When not all of the 'key' fields are printed then the dollar field does not print, but if all the key fields form the host flat file are printED then the dollar field prints coreectly.

Can somebody explain to me why this happens?
I can fix it, it is obvious, print the fields. It seems logical also to print the fields. Be that as it may why does it do that? I can guess. It loses it's pointer. But what is the real technical reason?

Interestingly another fix is to create the first file as a format focus file without an index and it will work.

Thanks, Rick


 
TABLE FILE CAR
PRINT 
BODYTYPE 
BY COUNTRY 
BY CAR 
BY MODEL 
IF RECORDLIMIT EQ 10
ON TABLE HOLD AS HOLD1
END
-*
DEFINE FILE CAR
JOINKEY/A50 = COUNTRY | CAR | MODEL;
END
TABLE FILE CAR
PRINT 
COUNTRY 
CAR 
MODEL
BODYTYPE DEALER_COST
BY JOINKEY
IF RECORDLIMIT EQ 10
ON TABLE HOLD AS HOLD2 FORMAT FOCUS INDEX JOINKEY
END
-*
JOIN COUNTRY AND CAR AND MODEL IN HOLD1 TO JOINKEY IN HOLD2 AS J1
TABLE FILE HOLD1
PRINT
COUNTRY
CAR
MODEL
DEALER_COST
END


 

This message has been edited. Last edited by: Rick Man,


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
 
Posts: 204 | Registered: March 31, 2008Report This Post
Virtuoso
posted Hide Post
A multi-field JOIN from/to a fixed sequential data source is not supported. Only SQL/FOCUS, SQL/SQL, FOCUS/SQL and FOCUS/FOCUS will work.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Platinum Member
posted Hide Post
I understand that. It's just that if I add the whole key fields to the PRINT statement it works. I'm curious why.


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
 
Posts: 204 | Registered: March 31, 2008Report This Post
Virtuoso
posted Hide Post
Multi-field joins *from* a sequential data source are supported. For example, the join syntax and notes thereto in Creating Reports WithWebFOCUS Language (v. 7.6)(p. 685) specify no restrictions on the host, except for FOCUS files.

It may help if you post your exact code for the two scenarios.

Not that you have two COUNTRY columns in your JOIN structure (one in HOLD1, one in HOLD2); same for CAR and MODEL. See what happens when you omit COUNTRY CAR MODEL entirely from the first hold, or rename them, so that fieldnames are unique across the join.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Platinum Member
posted Hide Post
Here's the code per your suggestion. That didn't help.
 SET ASNAMES=ON
TABLE FILE CAR
PRINT
BODYTYPE
BY COUNTRY
BY CAR
BY MODEL
IF RECORDLIMIT EQ 10
ON TABLE HOLD AS HOLD1
END
-*
DEFINE FILE CAR
JOINKEY/A50 = COUNTRY | CAR | MODEL;
END
TABLE FILE CAR
PRINT
COUNTRY AS 'CTRY'
CAR AS 'AUTO'
MODEL AS 'TYPE'
BODYTYPE DEALER_COST
BY JOINKEY
IF RECORDLIMIT EQ 10
ON TABLE HOLD AS HOLD2 FORMAT FOCUS INDEX JOINKEY
END
?FF HOLD2
-*
JOIN COUNTRY AND CAR AND MODEL IN HOLD1 TO JOINKEY IN HOLD2 AS J1
TABLE FILE HOLD1
PRINT
-*COUNTRY
-*CAR
MODEL
DEALER_COST
END 


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
 
Posts: 204 | Registered: March 31, 2008Report 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] Multi-Field JOIN doesn't print child data

Copyright © 1996-2020 Information Builders