Focal Point
[SOLVED] Global join error with custom table

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

October 28, 2008, 05:24 PM
MO Admin
[SOLVED] Global join error with custom table
I am trying to join a custom user table to the SMQUERY table so I can display the full user name instead of the user ID when running my custom usage report.

I can get the join to happen without errors, but when I run the report, I get FOC1101--Interface does not support global join.

Can anyone shed any light on this error, as I have not been able to find any information at all about it.

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


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
October 28, 2008, 05:36 PM
Prarie
were you able to see this entire message
FOC1101) THIS INTERFACE DOES NOT SUPPORT THE GLOBAL JOIN
The JOIN command does not support the
external files you are attempting to join
together.

What is your Custom user table? Can you get back data if you run a report against it?


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
No, I only get the following:
(FOC1101) THIS INTERFACE DOES NOT SUPPORT THE GLOBAL JOIN


When I run a report based on only my custom table, I get all the infomration. The table only includes user id, user name, role, group, and FTI Y/N indicator.

This information was created by running the mrextract.bat on the server, and pulling the user text file into Excel. I then added my FTI Y/N indicator or each row. Then I went into my Master File directory, and did 'New'-->'Upload Data File'


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
quote:
What is your Custom user table? Can you get back data if you run a report against it?


Can you answer these questions or post the master and access files for this custom table.

What data source is SMQUERY? DB2, SQL Server?


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
Here is the master file for my user table:
FILENAME=WF_USER_TABLE, SUFFIX=COM ,
DATASET=ANALYZER/WF_USER_TABLE.TXT, $
SEGMENT=WF_USER_TABLE, SEGTYPE=S1, $
FIELDNAME=USER_ID, ALIAS=USER_ID, USAGE=A48, $
FIELDNAME=ROLE, ALIAS=ROLE, USAGE=A50, $
FIELDNAME=USER_NAME, ALIAS=USER_NAME, USAGE=A100, $
FIELDNAME=GROUP, ALIAS=GROUP, USAGE=A50, $
FIELDNAME=FTI, ALIAS=FTI, USAGE=A1, $


When I run a report based on only it, I get all the data.

My analyzer is a Focus/FDS repository, so I am assuming SMQUERY is a focus data source.

Thanks,


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
I am going to try what you are doing on my dev box. My repository is DB2 and my platform is AIX but that shouldn't make a difference.

Stay tuned .........


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
 TABLE FILE IBIMRUSR
PRINT DST.USER_NAME
BY USER_ID
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS USERS FORMAT ALPHA
END
JOIN SMUSER IN SMQUERY TO USER_ID IN USERS AS J1
TABLE FILE SMQUERY
PRINT USER_NAME SMRPCNAME
BY SMUSER
END


Here is my master for ibimrusr.txt.

FILENAME=IBIMRUSR, SUFFIX=COM
DATASET='C758760/IBIMRUSR.TXT'
SEGNAME=IBIMRUSR, SEGTYPE=S1, $
  FIELDNAME=USR_HTM, ALIAS=USR_HTM, FORMAT=A50, $
  FIELDNAME=USER_ID, ALIAS=USER_ID, FORMAT=A48, $
  FIELDNAME=ROLE, ALIAS=ROLE, FORMAT=A50, $
  FIELDNAME=FIELD_4, ALIAS=FIELD_4, FORMAT=A200, $
  FIELDNAME=USER_NAME, ALIAS=USER_NAME, FORMAT=A100, $
  FIELDNAME=FIELD_6, ALIAS=FIELD_6, FORMAT=A50, $


My extract has lots more columns than yours does for one thing so make sure that the master is correct.

The second this is that if you are going to join to a sequential file, the data must be sorted by the join key.

The request above works at my site. Make sure you are following all of the rules.


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
I recreated my table and report exactly as yours is. When I run it, I get:

No HTML Output!

--------------------------------------------------------------------------------


0 NUMBER OF RECORDS IN TABLE= 331 LINES= 289
(FOC1070) VALUE FOR JOIN 'FROM' FIELD OUT OF SEQUENCE. RETRIEVAL ENDED


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
quote:
FOC1070: The FROM field used in a JOIN command must be sorted in ascending sequence within the file if it is joined to a FIX, COM or VSAM/ESDS file.


Well the good news is that you are getting a different message. The bad news is that it is still not working. Your source must also be sorted by USER_ID.

Another thing you could do on the 'USERS' file is create it as

ON TABLE HOLD AS USERS FORMAT FOCUS INDEX USER_ID


That would eliminate the sort requirement.

You may have to paste some of your code in order for us to diagnosis this further.


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
Yep I agree make the Focus File with the indexed field should do the trick.
Using the following code, I am able to run it. However, I am only getting user_name data for my personal MRE id. All the others are blank.

TABLE FILE IBIMRUSR
PRINT USER_NAME
BY USER_ID
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS USERS FORMAT FOCUS INDEX USER_ID
END
JOIN SMUSER IN SMQUERY TO USER_ID IN USERS AS J1
TABLE FILE SMQUERY
PRINT USER_NAME SMRPCNAME
BY SMUSER
END


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
Please look at the contents of your uploaded file to make sure that it contains everything that you need.

Also make sure that the SMQUERY file has everything as well.

You may need a SET ALL=ON statement before your code to get the short paths.


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
When I run reports on each table individually, they both contain all the data I need. SMQUERY has records for several differnt users, and IBIMRUSR has all of my users.

The SET ALL=ON command did not make a difference.


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
You sure the User_id is the same size on each file?


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Yes, they are both A48


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
Try this

JOIN SMUSER IN SMQUERY TO ALL USER_ID IN USERS AS J1
Same result.

Even when I put this in MR and log in as a different user, I still only see my name being matched; not the logged in user's name.


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
Well than maybe you should try a Match...I'm not sure why it would not join...I must be missing something.
A MATCH won't work. He can have multiple rpc's for the same user id and he needs the name for all of them.

The example I posted works in my environment. But my ibimrusr.txt file master does not match his and that concerns me.

MO,

Can you cut and paste some of your data from the user file into a post so that I can see it?


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
Ginny,

I made my ibimrusr file match yours. The reason it didn't match at first was because I cleaned out some of the fields that I did not need and added one of my own.

However, after your post, I recreated the table exactly like yours, and that is what I have been working with.

I will upload some data for you tomorrow. Time to call it quits for today.

Thanks for everyone's help.


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
Got a reply from IBI support that finally got it working.

The problem was that on the SMQUERY table, the user id's are in all UPPER case. On my user table, we use all LOWER case id's.

They had me convert my user table to all UPPER case and then do the match.

That worked! Thanks for everyone's help. I really do appreciate it.


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML