![]() |
||||||||||||
Go ![]() | New ![]() | Search ![]() | Notify ![]() | Tools ![]() | Reply ![]() | ![]() |
Expert |
Is the following possible: JOIN FIELD1 IN FILE1 TO FIELD1 IN FILE2 TAG J001 AS J001 JOIN FIELD1 IN FILE1 TO FIELD1 IN FILE3 TAG J002 AS J002 The reason that I ask is that when I do this, I only see the fields from line two of the two JOINs. Or, do I need to do something like the SQL CLE, when I do the first JON and HOLD it, the do another JOIN from that to FILE3? FILE3 is a synonym to an Excel Spreadsheet. An explanation behind your 'Yes' or 'No' would be appreciated. Thanks, DougThis message has been edited. Last edited by: Doug, | ||
|
Expert |
Update: I did a TABLE FILE request / HOLD FORMAT FOCUS on FILE3 to create a FOCUS file, with the synonym. And the JOIN works as above Yea!. the question remains: Why didn't it work from the Synonym for the Excel file? My quest continues...This message has been edited. Last edited by: Doug, | |||
|
Virtuoso |
Doug This looks like it was done correctly. Do a ? JOIN after the request and see what it shows. Thank you for using Focal Point! Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats | |||
|
Expert |
The ? JOIN shows that the three files are JOINed. But only the fields from the 2nd JOIN are available in IA. I'll be back on this on Monday... I'm off to California...This message has been edited. Last edited by: Doug, | |||
|
Virtuoso |
Could it be as ridiculous as you are missing the END after each JOIN... WF 7.7.05M, 8.1.05M, 8.2.0.1M gen240 Windows, HTML, Excel, PDF In Focus since 2007 | |||
|
Expert |
Actually, the END statement is only needed on a multi-line JOIN. It's not required in the code in my original post... Unless something has changed with that. If so, What Changed? The code in my original post was simplified code taken from the IA Generated code, which did not work when using it as IA generated it (IA generated Multi-line statements with the END as the terminator of each JOIN), simplified down to single line JOINs for the sake of the FP display. | |||
|
Virtuoso |
Hasn't thought that you did that. WF 7.7.05M, 8.1.05M, 8.2.0.1M gen240 Windows, HTML, Excel, PDF In Focus since 2007 | |||
|
Expert |
OK, that wasn't clear. The case remains that the JOIN, done as the two single line JOINs or 'as IA created them as multi-line JOINs' didn't work. | |||
|
Expert |
Trying to reproduce your exact situation (Excel source files and using IA) and it works fine. I created a workbook with three worksheets, each with two columns of data. The first row is a header row to provide field names. The first column is named "FIELD1" the second column is named "FILE#_FIELD2" where # relates the worksheet number. After creating the synonyms for the three worksheets, I could open IA using the first worksheet and the used Data/Join to add the other two. Result was all three files are displayed in field selector. T
| ||||||||||
|
Expert |
Thanks Tony, Chuck, and Martin, That clarified this and I got it to work as it should. | |||
|
Powered by Social Strata |
![]() | Please Wait. Your request is being processed... |
|