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.
Hi Focals, In my actual project i use focus files as a temporary data source. How can i force WEBFocus to create always a new focus file. In the first run with a big select i got nearly a 2 GB focus file. With a small select with only some rows in the output, the focus file is still 2 GB big.
Greetings
ChristianThis message has been edited. Last edited by: ChristianP,
WF Production Version: 7.7.02M WF Test Version: 7.7.02M Developer Studio: 7.7.02 HTML, EXL2K, FLEX, PDF,PPT
Where is the file stored? On a RDMS I guess? Depending on your RDMS the size of a file will only become smaller after a 'reorganize' ( or whatever your RDMS calls it ).
The file is not deleted. Because that takes a lot of time ( performance ). So instead of deleting it, it just marks the rows als 'deleted'. But it still uses the full 2 GB.
I guess when it's a temporary data source it will be removed after the procedure is completed.
Greets ( grüsse ), Dave
_____________________ WF: 8.0.0.9 > going 8.2.0.5
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010
Hi Dave, the file is located on EDASERVE in the folder of the master files. Which command do i have to use to delete the file after the fex is ready. I point to the Folder with APP HOLD XXXX.
heel hartelijk bedankt
WF Production Version: 7.7.02M WF Test Version: 7.7.02M Developer Studio: 7.7.02 HTML, EXL2K, FLEX, PDF,PPT
Hi, You could perhaps use the APP DELETEFILE command. This will mean that the FOCUS DB is stored in an accessible APPS folder. The syntax is: APP DELETEFILE app_dir filename FOCUS Where "app" is the application directory, and "filename" is the FOCUS DB file name.
WebFOCUS 8.2.06 mostly Windows Server
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008
The size of the file doesn't really matter that much. If the file is re-used by means of a ON TABLE HOLD AS xxx FORMAT FOCUS (or even with CREATE FILE) then the file will be erased internally and will recieve a new contents. The file size will not change, however. If that is a problem, then use Twanette's solution.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Unless you have a DATASET parameter in your master, if you use the CREATE FILE command a new FOCUS file is alway created in the execution folder under edatemp. I have a job that grabs data from about 60 Oracle tables and builds a FOCUS file for adhoc reporting. This job runs at 2:30am and takes about 30 minutes to run. While the job runs, the new FOCUS file is in the temp folder for the ageent in edatemp and the previous file and the master are in baseapp. When the job finishes I do a Unix move (mv) command like this:
-UNIX mv filename.foc &APPROOT/baseapp
If anyone happens to run something while the file is being created, they get the data from the previous file in baseapp.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006
The syntax is: APP DELETEFILE app_dir filename FOCUS Where "app" is the application directory, and "filename" is the FOCUS DB file name.
I couldn't get this to work, however, this does work; APP DELETEF app_dir filename FOCUS (FOCUS being the format of the hold file)
@Waz I agree that deleting prior to recreating a hold file is a good best practice. So thanks for the idea and I have just incorporated this into one of our automated processes.
I love Focal Point, I learn so much.
WebFOCUS Server 8.1.05 Windows 2008 Server WebFOCUS AppStudio 8.1.05 Windows 7 Professional IE 11 and Chrome Version 43.0.2357.124 m. Mostly HTML, PDF, Excel, and AHTML