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] Deleting temporary hold files in the Agent's working directory

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Deleting temporary hold files in the Agent's working directory
 Login/Join
 
Master
posted
One of our user has a process that is writing ~ 10.5GB in hold files in the agent directory (C:\temp\edatemp\ts######\). We are trying to streamline this process, but I think we are stuck with some large files for the time being. When (if) the process runs to completion, the agent directory is purged and all is fine. If not, the disk can easily run out of space and the whole environment is down for the count. Thankfully, it's the dev server.

I'm hoping that there is a built in command I can pass to delete one hold file after I am done with it. Each one is ~1.5 GB and I'd like to only have 1-2 out there at a time (if possible).

- ABT

This message has been edited. Last edited by: 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
Guru
posted Hide Post
Put this code after the last time that you use the temp file.
/*
UNIX pwd
UNIX rm temp file name.ftm
-RUN
*\


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Platinum Member
posted Hide Post
I dont think there is any such command/process to delete the temp files in agent directory during the middle of the execution.

Are these hold files generated as part of intermediate manipulation...if so what you could do is the capture the hold files on the fly after each step and delete them manually...you can use TEMPPATH and app delete commands for this...

We had this issue and we converted all the intermediate hold files into DB temp tables ..
If you can use SQL passthru all the possible conversions/manipulations can be done there and avoid some hold files..

thanks
Sashanka


WF 7.7.03/Windows/HTML,PDF,EXL
POC/local Dev Studio 7.7.03 & 7.6.11
 
Posts: 103 | Registered: June 12, 2009Report This Post
Member
posted Hide Post
On a Windows Server 2003 box (WebFOCUS server)

Put this code after the last time that you use the temp file.

-WINNT DEL name.ftm


WebFOCUS 7.6.11
All Outputs
Windows 2003
 
Posts: 6 | Registered: July 03, 2008Report This Post
Expert
posted Hide Post
With our large jobs, we always delete the big temp files after we finish with them.

Its just issueing the OS command.

We use:

Unix: ! rm {filename}
Win: ! del {filename}


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
Awesome, guys. Thanks for the feedback/best practices. Here's what I threw together as an include in our STANDARDS folder. This can now be -MRNOEDIT INCLUDED with a variable declaration. Hope it saves someone else a few mins.

-*******************************************************************************
-* DELHOLD.FEX
-*******************************************************************************
-* AUTHOR:  Blake Thompson
-*
-* DATE:    20110715
-*
-* PURPOSE: Keep temporary agent directories clean of old hold files during
-*          long running processes or processes that consume lots of diskspace.
-*
-*******************************************************************************
-* REQUIREMENTS
-*******************************************************************************
-* SET THE &HOLDFILETODELETE variable with the name of the holdfile you specified
-* in your program.
-*
-* You MUST set a -RUN before calling this (i.e. after your ON TABLE HOLD statement).
-*
-*******************************************************************************
-* USAGE:
-*******************************************************************************
-*
-*  TABLE FILE CAR
-*  PRINT
-*  *
-*  ON TABLE HOLD AS FILE1
-*  END
-*  -RUN
-*
-*  -SET &HOLDFILETODELETE = 'FILE1';
-*  -MRNOEDIT -INCLUDE DELHOLD
-*
-*******************************************************************************
-* OPTIONS:
-*******************************************************************************
-* -SET &VERBOSE_DELHOLDFILE = 'ON';
-* TO SEE SYSTEM MESSAGES (GOOD FOR DEBUG)
-*
-* YOU CAN IGNORE THE VARIABLE IF YOU YOU DON'T WANT FEEDBACK.
-*
-*******************************************************************************


-*TABLE FILE CAR
-*PRINT
-**
-*ON TABLE HOLD AS FILE1
-*END
-*-RUN

-DEFAULT &VERBOSE_DELHOLDFILE = 'OFF';

-*-SET &HOLDFILETODELETE = 'FILE1';
-SET &HOLDFILETODELETE = &HOLDFILETODELETE | '.ftm';

-IF &VERBOSE_DELHOLDFILE = 'ON' THEN GOTO DOMSG1 ELSE GOTO SKIPMSG1;
-DOMSG1
-WINNT echo =========BEFORE============
-WINNT cd
-WINNT dir /b
-SKIPMSG1


-WINNT del &HOLDFILETODELETE


-IF &VERBOSE_DELHOLDFILE = 'ON' THEN GOTO DOMSG2 ELSE GOTO SKIPMSG2;
-DOMSG2
-WINNT echo.
-WINNT echo =========AFTER=============
-WINNT cd
-WINNT dir /b
-SKIPMSG2


------------------------------------
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
This could be expanded to use &FOCMODE.

&FOCMODE has the OS type.

Windows: WINNT
Unix: UNIX

Not sure what other environments will return.

But you could branch to different code for each, making the fex cross platform.


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
  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] Deleting temporary hold files in the Agent's working directory

Copyright © 1996-2020 Information Builders