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     How do i clear the contents of a hold file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How do i clear the contents of a hold file
 Login/Join
 
<mjdeaver>
posted
I need to know how to clear the contents of a hold file.
 
Report This Post
Virtuoso
posted Hide Post
By default, in webfocus, the hold file will be removed after the webfocus report is finished executing. Also, if this is a permanent file, the next time you run the hold command, it will overright the current file.

Or, you can just delete it with an operating system command.

-* Unix
!rm /path/file.ftm

-* Win
!del C:\path\file.ftm
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Guru
posted Hide Post
If you are using the APP HOLD technique you can also use

APP DELETEFILE app1 filename filetype

where filetype is one of

FOCUS - .FOC
MASTER - .MAS
ACCESS - .ACX
FOCEXEC - .FEX
MAINTAIN - .MNT
FOCSTYLE- .STY
HTML - .HTM
GIF - .GIF
FOCTEMP - .FTM
DATA - .DAT
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Platinum Member
posted Hide Post
The way I have done it is:

DEFINE FILE HOLDFILENAME CLEAR
END

For files that use the same name and are compounded one after the other so that it clears once that report is created.

Does that help?
 
Posts: 178 | Registered: May 11, 2005Report This Post
Expert
posted Hide Post
is your HOLD file in your agent and you want to make sure it is empty as you move from one part of your procedure to another part? eg, you want to avoid table file hold on the wrong hold file in the event that some error has occured?? If so,

CMD ERASE HOLD.*

will delete the hold.ftm and the hold.mas from within the agent, as the agent is on top of the path. ( i use edapath, not apppath); CMD is the dos escape that works for me, i'm in windows server.
If, for some reason, you need the full path of your HOLD file within your agent, do the following:
-SET &MYPATH = TEMPPATH(40,'A40');
-SET &AL = ARGLEN(40,&MYPATH,'I2') -1 ;
-SET &LAL ='A'|&AL;
-SET &MYPATH = SUBSTR(40,&MYPATH,1,&AL,&AL,'&LAL');
-SET &MYFILE = &MYPATH | '\HOLD.*';
then
CMD ERASE &MYFILE
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     How do i clear the contents of a hold file

Copyright © 1996-2020 Information Builders