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
October 29, 2008, 12:01 PM
MO Admin
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
October 29, 2008, 12:20 PM
GinnyJakes
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.
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
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
October 29, 2008, 02:45 PM
GinnyJakes
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.
Yep I agree make the Focus File with the indexed field should do the trick.
October 29, 2008, 03:02 PM
MO Admin
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
October 29, 2008, 03:11 PM
GinnyJakes
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.
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
October 29, 2008, 03:22 PM
Prarie
You sure the User_id is the same size on each file?
In Focus since 1993. WebFOCUS 7.7.03 Win 2003
October 29, 2008, 03:25 PM
MO Admin
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
October 29, 2008, 03:37 PM
Prarie
Try this
JOIN SMUSER IN SMQUERY TO ALL USER_ID IN USERS AS J1
October 29, 2008, 03:57 PM
MO Admin
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
October 29, 2008, 04:54 PM
Prarie
Well than maybe you should try a Match...I'm not sure why it would not join...I must be missing something.
October 29, 2008, 05:19 PM
GinnyJakes
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?
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
October 30, 2008, 10:52 AM
MO Admin
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