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     [SOLVED] Deleting HeldFiles after program complete?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Deleting HeldFiles after program complete?
 Login/Join
 
Master
posted
Folks,
I'm trying to determine if there is a way to delete the HOLD files temporarily stored in c:\ibi\apps\HeldFiles\ during program execution? We seem to have several gigabytes of Hold File remnants from past executions. I was wondering if there was some sort of 'clean up' process that the programmer could do to delete these files after execution to keep the space usage down.

- ABT

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


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Expert
posted Hide Post
They shouldn't be there in the first place.

Default behaviour: HOLD files are temporarily stored in the agent's temporary directory (e.g. \srv76\wfs\edatemp\ts000002) - they get automatically deleted at the end of the request.

Non-default behaviour: Using "APP HOLD HeldFiles" or "APP HOLDDATA HeldFiles" commands, the HOLD files are permanently stored in c:\ibi\apps\HeldFiles\ which has to be manually cleaned up. There are very few reasons why you need to save the HOLD files - I can think of only two: 1) to use them in a subsequent drill-down; 2) to aid in debugging a program.

If they're being saved for reason 1, look into FOCCACHE - "Two applications are provided during installation: a default application called baseapp and an application containing sample files called ibisamp. In addition, when you connect to the server a temporary directory called foccache is added as the first directory in the search path. When you want to be able to reuse data within the same browser session, you can store the data in the form of a HOLD, SAVE, or SAVEB file in the foccache directory. As long as the browser session remains active, the files stored in the foccache directory can be referenced in requests.

If they're being saved for reason 2, you manually have to delete the files or set up a regularly scheduled job (via ReportCaster or some other tool) to delete the contents of the folder.


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
Gold member
posted Hide Post
In a nutshell, the programmer can create a job in ReportCaster with the following code and schedule it to run every few minutes or so:

APP DELETEF HeldFiles


WebFOCUS 7.7.02
Unix
All Output
 
Posts: 70 | Registered: March 24, 2011Report This Post
Master
posted Hide Post
Francis,
As always, thanks. After a bit more investigation, they appear to be the second case (FILEDEF). I'll educate my users to only use ON TABLE HOLD AS unless they need to refer back to the file at a later time after the process completes.

Thanks!
- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report 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     [SOLVED] Deleting HeldFiles after program complete?

Copyright © 1996-2020 Information Builders