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] FOCUS vs ALPHA

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] FOCUS vs ALPHA
 Login/Join
 
Expert
posted
Is there any justifiable reason why one would use "ON TABLE HOLD AS HOLDFILE FORMAT ALPHA" instead of "ON TABLE HOLD AS HOLDFILE FORMAT FOCUS", when HOLDFILE isn't being used for anything other then a subsequent "TABLE FILE HOLDFILE" request? After all, the is WebFOCUS, isn't it?
Inquiring minds want to know…

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Actually I would just use "ON TABLE HOLD AS HOLDFILE".

The main reason for me is overheads.

FORMAT FOCUS will generate a FOCUS file, a hold file and then load all the records into the FOCUS file.

The HOLD FORMAT ALPHA or just HOLD, only writes out the data to a file.

Simply its quicker.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
We started to use

ON TABLE HOLD AS H01

instead of

ON TABLE HOLD AS H01 FORMAT FOCUS

to speed things up.

FOCUS format will 'segment' the data for faster retrieval, but it will take much longer to make such a HOLD file.
If the HOLD file is only used in the same procedure ( e.g. temporary and not a saved HOLD file ) it's faster to not use FORMAT FOCUS.

In some cases ( large HOLD-files, which you have to try to avoid ) XFOCUS is faster.

Good luck,
Dave


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Virtuoso
posted Hide Post
Isn't there a SET command to copy the internal matrix (which is nothing but an on-the-fly in-memory Focus file) directly out when you HOLD FORMAT FOCUS, bypassing all the extract processing? That should be more efficient than HOLD [FORMAT ALPHA].
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Master
posted Hide Post
I go for FOCUS format, in case of using SQL translator. Also when I have a single large data file and I need to have index on particular column which I hit multiple times down the flow with different filter conditions.

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Guru
posted Hide Post
Jacob, I think you're thinking of the DIRECTHOLD parameter, which is set to ON by default. It does not create an intermediate file and a MODIFY procedure, it just makes WF to dump the internal matrix on disk.

/Håkan


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Master
posted Hide Post
I use HOLD AS FORMAT ALPHA all the time when the next step in the process is a MODIFY with a FIXFORM statement.


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Expert
posted Hide Post
Thanks for all the input...

So, IF all I want to do within a single procedure is to do a TABLE FILE request, then the FORMAT FOCUS is not necessary. However, IF I am doing an APP HOLDDATA … APP HOLDMETA… (so that these HOLD files are available to other fexes) then a FORMAT FOCUS would be a better choice then FORMAT ALPHA, right?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
No.

Also, if you need to JOIN to/from this HOLD file, FOCUS DBs cannot join with more than one column.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
quote:
FOCUS DBs cannot join with more than one column.
Yeah, What's up with that? This is FOCUS... So, why limit the JOINs to ONE?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Virtuoso
posted Hide Post
They'll catch up to NOMAD one of these decades.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Expert
posted Hide Post
BUT, I recently successfully did a multi-column join with FOCUS dbs using SQL.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Can't a condition-based Join be utilized?
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Expert
posted Hide Post
It seems that conditional joins do work, but not from a hold file to as FOCUS file.

But FOCUS to FOCUS works, bizarre !


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Multi field joins can be accomplished on FOCUS/XFOCUS files using the MDI feature. The MDI build is fast, and subsequent retrieval also fast.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Expert
posted Hide Post
quote:
It seems that conditional joins do work, but not from a hold file to as FOCUS file.

But FOCUS to FOCUS works, bizarre !

How about if the HOLD file is the results of a "ON TABLE HOLD AS MYFILE FORMAT FOCUS" line?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
Hi Alan,

What is the MDI feature?


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Virtuoso
posted Hide Post
quote:
How about if the HOLD file is the results of a "ON TABLE HOLD AS MYFILE FORMAT FOCUS" line?

That will work, it is flat file to FOCUS db that is not supported.
quote:
What is the MDI feature?

Multi Dimensional Index. A (paid for I believe) feature of the FOCUS/XFOCUS database. It allows an index to be create from more than 1 dimension and in different segments. Quite cool really and v. rapid. Joins can be constructed onto all or part of an MDI.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Expert
posted Hide Post
Ah, so its like joining to primary key fields in a DB.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
If you need to join on multiple fields you could choose to add a surrogate-key field ( combined / concatenated ) which is unique.

This way you can always join on one field.
Added bonus : index that key!



...or use match.


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Expert
posted Hide Post
Getting more answers here, live, at Summit 2014.

Networking at the Focal Point Booth with Kathleen Butler! Lots of excitement here at Summit 2014 Good One




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report 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] FOCUS vs ALPHA

Copyright © 1996-2020 Information Builders