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     [SOLVED] Delete File after Execution

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Delete File after Execution
 Login/Join
 
<José Andrés Vargas Aguilar>
posted
Hy.

I'm working on a project that implies the generation and execution of a new fex to obtain the resultset (see more info here).

So, I need to delete the dinamicly generated fex after I have executed it.

So far I've tried with this at the end of the fex that uses the resultset of the dynamic one:

-WINNT DEL &wf_name

The file gets deleted but my main fex isn't able to use the resultset before.

Thanks for the help.

Andrew.

This message has been edited. Last edited by: <José Andrés Vargas Aguilar>,
 
Report This Post
<José Andrés Vargas Aguilar>
posted
FYI, when commenting the Delete line...

-* WINNT DEL &wf_name

...The report gets showed nicely. The only upset then is the presence of a new file on the respective application folder.
 
Report This Post
Virtuoso
posted Hide Post
Try:

-* Get data and produce file
TABLE FILE ...
ON TABLE HOLD AS MYHOLD
END
..
-* Produce report
TABLE FILE MYHOLD
..
END
..
-RUN <-- Make sure everything up to this point is executed
..
-* Delete file
-WINNT del myhold.ftm
..



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
José Andrés, WebFOCUS commands get "stacked" for later execution unlike Dialog Manager commands which are executed right away. That is the reason why you have to ask WebFOCUS to -RUN all commands in the stack *before* the -WINNT command attempts to remove your file.

I hope that makes sense Confused

This message has been edited. Last edited by: njsden,



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
<José Andrés Vargas Aguilar>
posted
It does make sense Neftaly, and it worked!

All I needed was the -RUN just before -WINNT DEL.

Thanks!
 
Report This Post
Virtuoso
posted Hide Post
If you know in which APP folder the temporary fex is created, you can also use the APP DELETEFile command to delete it:

APP DELETEF appname filename filetype

for example:

APP DELETEF baseapp &wf_name fex


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
<José Andrés Vargas Aguilar>
posted
Thanks Dan!
 
Report This Post
Virtuoso
posted Hide Post
Do the .FEX that produce the file and the one that produces the report run asynchronously? That's the only reason why you'd need to manually remove the file.

If they run in sequence as part of a unique session, just let the tool create the hold file in the edatemp location assigned to your session and it will be removed automatically after everything finishes.

-* Call procedure to retrieve data and create HOLD file
-INCLUDE get_data_and_hold
..
-* Do some extra stuff
..
-* Produce report out of HOLD file previouly created
-INCLUDE do_report
..
-* Done. HOLD file will be removed by the reporting server as soon as this session ends.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Expert
posted Hide Post
Confused

You are dynamically creating a fex.

Is this created from a fex ?, if so it will be created in the temp directory of the agents session, and will be deleted after the execution is finished.


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     [SOLVED] Delete File after Execution

Copyright © 1996-2020 Information Builders