Focal Point
Append to Focus Hold File

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

January 05, 2007, 12:02 PM
Jason K.
Append to Focus Hold File
I've only been working with webfocus for a few months, so this is probably an easy answer.

We currently build a .FOC Hold file off an SQL statement every night and it takes some time to complete, is there any way to Append to the hold file rather than replacing it altogether everynight?


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
January 05, 2007, 12:11 PM
Prarie
Jason,

Do a search on Append on this forum...there are several discussions on this topic...see if any helps.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
I'm sorry, I shoud have specified that I don't want any duplicates.

I'd like to do the equivalent of a
"select * from
my_db2_database_table
where
some_unique_value
not in
(select some_unique_value from my_foc_hold)"


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
Jason,
you can (and probably should) use the MODIFY and UPDATE syntax for updating, adding and deleting records from a focus db. Its brilliant.
Go to your tech support page and locate and download the MODIFY manual.
APPEND i would only use for flat files.
(it may work for focus files, but i just wouldnever use it)
FILEDEF MYFILE DISK somefilename
...then create the file
...later, if youw ant to add to it..
FILEDEF MYFILE DISK somefilename (APPEND
...and now whenyou write to it, the new records will go on at the end.
Without the (APPEND, your file would be overwritten.

a note on syntax: a 'FOC' file and a 'hold' file
usually mean 2 different things. a '.FOC' is a focus database where as a 'hold' file generally refers to something else...a temporary file in some interim step, and usually a .ftm, which is essentially a flat file, not an actual focus database.

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




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Jason
I do something like that, but it's all done with ETL. It gives me more control and it is all scheduled during the night.
You can append or update. (In fact there is a match process running with several cases)
Good luck




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