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     Clear APP HOLD at end of FEX??? APP UNHOLD?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Clear APP HOLD at end of FEX??? APP UNHOLD?
 Login/Join
 
<NorthNone>
posted
Thanks for stopping by to read my question...
We're converting from FOCUS to WEBFOCUS (NT server). Some of our longer FEXes (using APP HOLD) create many temporary .mas, .foc and .ftm files. These files are used to create the final file which usually is FTP'd to another server.
When the FEX is done, we are writing a LOT of code to delete the temporary .mas, .foc and .ftm files.
PLEASE...is there an APP UNHOLD that will wipe out any temp files created by a particular FEX as it closes?
We don't want to just leave them out there.
We don't want to Del *.* because another process might have written something out there in the meantime.
Help GRATEFULLY received. Thanks for your time.
JSouth
 
Report This Post
Platinum Member
posted Hide Post
Just

APP HOLD

on a line all by itself will clear the APP HOLD that points to a specific spot.
 
Posts: 124 | Location: Lebanon, New Hampshire | Registered: April 24, 2003Report This Post
<Pietro De Santis>
posted
But this most likely does not delete the files.

Why do an APP HOLD at all? If the same FEX is doing all the work, why not just have a FILDEF for the last file that is FTP'd?

Am I missing something?
 
Report This Post
<NorthNone>
posted
Suzy - thanks for taking time to reply :-)
Unfortunately that did not delete the already created temporary files when I tried it, it just stops additional ones from being created in that location.
Any other ideas?
 
Report This Post
<NorthNone>
posted
Pietro, well...hmmm...why did I use it...I used APP HOLD because I was told to. I took it out and found that much of the FEX still worked.
Would you be so kind as to post code showing how to do the FTP with the FILEDEF?
I am MOST grateful for your time and assistance :-)
JSouth
P.S. Without APP HOLD is there a risk that two processes running at the same time could wipe out each others' temp files? Or does WebFocus keep track of which files resulted from which FEX? We automate a lot of these things so it is possible for more than one process to run at the same time.
 
Report This Post
<Pietro De Santis>
posted
Not using APP HOLD guarantees that nothing will wipe each other out - each WebFOCUS call runs in it's own temp space - the files disappear automatically, unless you use a SET command to save them.

-SET &TEMPDIR = TEMPPATH(60,'A60');
-SET &FTPFILE = &TEMPDIR || 'FTPFILE.TXT';

FILEDEF FTPFILE DISK &FTPFILE
-RUN

TABLE FILE BLAHBLAH
SUM APPLES
BY ORANGES
ON TABLE SAVE AS FTPFILE
END
-RUN

I'm not sure of the FTP command syntax, but it would be executed next.

I hope this helps.
 
Report This Post
<NorthNone>
posted
THANKS! You have been a great help. Just one more (I hope) question - if the main FEX calls (-INCLUDE) another FEX, does it still work correctly?
Again, I am most grateful for your assistance.
JSouth
 
Report This Post
<Pietro De Santis>
posted
Absolutely. All -INCLUDE and EX or EXEC are in the same WebFOCUS call.
 
Report 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     Clear APP HOLD at end of FEX??? APP UNHOLD?

Copyright © 1996-2020 Information Builders