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.
I have one MASSIVE fex I run each night which, in turn, runs about 50+ other jobs. It has become so big that I'm running out of memory.
Is there some way I can clear out all the temp files I don't need and free up memory so the job can finish? I know the simple solution is to crate two jobs to run each night but I'd really like to keep it as one master program.
You could run an OS command to delete all the files in the current agent's directory between each step - determine the agent's directory with this command:
-SET &TEMPDIR = TEMPPATH(60,'A60');
This MASSIVE fex does sound like soemthing that should be broken dowsn and run in steps via ReportCaster.
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
I thought this would work, but it looks like it doesn't - the agent seems to get stuck at the DOS DEL command. So I will not recommend doing this.
-SET &ECHO=ALL;
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS H001
END
-RUN
-*-- DETERMINE THE AGENT'S TEMP DIRECTORY ---
-SET &TEMPDIR = TEMPPATH(60,'A60');
-*-- DELETE THE TEMPORARY FILES IN THE TEMP DIRECTORY ---
DOS DEL &TEMPDIR.EVAL\*.FTM
DOS DEL &TEMPDIR.EVAL\*.MAS
-RUN
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS H002
END
-RUN
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
Your working directory is the temp directory, so you do not need to know what it is called. Do the following instead:
-SET &ECHO=ALL;
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS H001
END
-RUN
-*-- DELETE THE TEMPORARY FILES IN THE TEMP DIRECTORY ---
!del *.FTM
!del *.MAS
-RUN
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
Marc, the delete will clean up the files in the current agent's temp directory. If 500 people are running the same program, each execution of the program will have an individual agent, that agent's files will get cleaned up.
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
To be release agnostic when deleting or moving files in the WebFOCUS environment, there is a series of APP commands documented in the Server Configuration manual for your platform.
You would be interested in the APP DELETEF command.
This is doc copied from the manual for 7.6. APP DELETEF The APP DELETEF command deletes a component in an application. Syntax: How to Delete an Application Component Manually APP DELETEF appname filename filetype where: appname Is the application from which the component is being deleted. filename1 Is the component to be deleted. filetype Is the component type of the file to be deleted. For a full list of the types of files you can copy with APP commands, see Designating File Types for APP Commands on page 5-38.
This is the list of filetypes:
Note: This list reflects file types supported across all IBI products and release levels. Particular file types may not be supported in particular releases or with every product. Filetype File Extension MASTER .mas FOCSQL .acx OMI .omi HLI .hli FOCEXEC .fex EDAPROF .prf MNTPAINT .mpt EDANLS .nls ERRORS .err MAINTAIN .mnt WINFORMS .wfm FOCCOMP .fcm FOCSTYLE .sty FOCFTMAP .fmp AFM .afm HTML .htm TXT .txt PS .ps GIF .gif TDL .tdl BMP .bmp EXCEL .xls ADR .adr BST .bst EPS .eps
The APP commands are great and I wish more folks would use them instead of operating system commands.
Would be lovely if you could use the APP DELETEF command to delete more than one file at a time, something like APP DELETEF demo * ftm or APP DELETEF demo m* ftm
but I don't think that's possible. As well, the command only works on an APP 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
I've got the APP DELETEF commands to delete Focus files, and master files. I've never gotten it to delete an ftm (or pdf or xls or other hold file type). I'm not quite sure what I'm doing wrong there, so I end up having to use the operating system delete command. I don't quite understand why hold files (of any type) aren't in the list, since that is the file type I nearly always want to delete.
It didn't delete anything. Our temp area is set up as FOC$TMP (no E) and I figured that's where the files are because that's where I have to copy them from to save them in my area.
And, yes, I used -RUN before and after just to make sure it would happen where I wanted it to.