Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Append to Focus Hold File
Go
New
Search
Notify
Tools
Reply
  
Append to Focus Hold File
 Login/Join
 
Master
posted
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.
 
Posts: 611 | Registered: January 04, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteReport This Post
Master
posted Hide Post
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.
 
Posts: 611 | Registered: January 04, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
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
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Append to Focus Hold File

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.