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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Join problems
 Login/Join
 
Platinum Member
posted
Hello,

I am unable to get the joins right on my focus code. I have to hard code this due the GUI being inoperative on my PC. This data is being pulled off of a Sequel server.

Code:

* File cvtappevent.fex



JOIN
APP_EVENTS.APPLICATION IN APP_EVENTS TO
BUSSEG01.APPCRYPTIC IN BUSSEG01 AS J0
End

JOIN APP_EVENTS.APPLICATION AND APP_EVENTS.EVENT_PARTKEY IN APP_EVENTS TO
TRANSFER_EVENTS.APPLICATION AND TRANSFER_EVENTS.EVENT_PARTKEY IN TRANSFER_EVENTS AS J1
END


TABLE FILE APP_EVENTS
SUM
'CNT.APP_EVENTS.BUSSEG1/I7' AS 'Total Calls'
SUM
'CNT.TRANSFER_EVENTS.BUSSEG1/I7' AS 'TRANSFER CALLS'
BY
'APP_EVENTS.BUSSEGA' NOPRINT
BY
'APP_EVENTS.BUSSEG1'
WHERE event_partkey EQ 2007041700
-*WHERE event_partkey GE 2007041200 AND event_partkey LE 2007041200
-*WHERE APP_EVENTS.APPLICATION EQ '1st_Horizon_2'
WHERE (machine_id EQ 'PPNTVA08') OR (machine_id EQ 'PPNTVA17') OR (machine_id EQ 'PPNTVA07') OR (machine_id EQ 'PPNTVA16') OR (machine_id EQ 'PPNTVA04') OR (machine_id EQ 'PPNTVA13') OR (machine_id EQ 'PPNTVA05') OR (machine_id EQ 'PPNTVA12') OR (machine_id EQ 'PPNTVA14') OR (machine_id EQ 'PPNTVA03') OR (machine_id EQ 'PPNTVA19') OR (machine_id EQ 'PPNTVA06') OR (machine_id EQ 'PPNTVA20') OR (machine_id EQ 'PPNTVA15')
WHERE event_action EQ 'CHAIN'


ON TABLE PCHOLD FORMAT EXCEL
END

Are my joins incorrect?


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Virtuoso
posted Hide Post
JOIN
APP_EVENTS.APPLICATION IN APP_EVENTS TO
BUSSEG01.APPCRYPTIC IN BUSSEG01 AS J0
END

JOIN
APP_EVENTS.APPLICATION AND APP_EVENTS.EVENT_PARTKEY IN APP_EVENTS TO
TRANSFER_EVENTS.APPLICATION AND TRANSFER_EVENTS.EVENT_PARTKEY IN TRANSFER_EVENTS AS J1
END

You're first 'end' was 'End' not 'END' will that help. Since don't know what is in the files themselves.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
the mixed use of capitals and non-capitals might give you all the problems.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Platinum Member
posted Hide Post
Thanks,
I'll give it a try and let you know.


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Platinum Member
posted Hide Post
Is there any way to speed up the data retrieval process? I can not tell if this join works or not. I keep getting a timout error or something to that nature. I'm pulling data off of sequel server. Thanks,

Joe


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Virtuoso
posted Hide Post
Show us the masters.
It might be important how the keys and indices in the databases are made.
how many records do you expect.
Maybe it is better to first get the records from app_event that you need (only one day)
the double link might give some problems.

can you do the join on the database and make a view there?

So the answer is not so easy based upon only the FEX.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Gold member
posted Hide Post
Frank is probably your better source, but as way of translation, if your files are very large it may be worthwhile to do a run of the two files into hold files first and order them on the field you are joining on. You can also do them
ON TABLE HOLD AS HDL1 FORMAT FOCUS INDEX FieldName

Generally speaking the smaller you can make the files before the join the better. If you are ultimately going to do a limit, do it early.

Just my two cents worth.
 
Posts: 90 | Registered: April 15, 2004Report This Post
Guru
posted Hide Post
Don't forget about SQL tracing as well. Turn it on to see the generated SQL and use the SET XRETRIEVAL=OFF to just generate the SQL without extracting the data. This should help you to see if you are generating optimal sql.


ttfn, kp


Access to most releases from R52x, on multiple platforms.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders