Author |
Message
|
achocks |
Posted: Thu Jul 26, 2012 12:58 pm Post subject: Deleting a file using Message Broker |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
I googled and couldn't fine any useful information regarding deleting a file using Message Broker.
As far as a know Fileinput Node and FileOutput node are used to read and write files. My requirement is to delete a file after FTP'ing ..
Is it possible using WMB 7.0?
Thanks in advance! |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jul 26, 2012 3:55 pm Post subject: Re: Deleting a file using Message Broker |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
achocks wrote: |
As far as a know Fileinput Node and FileOutput node are used to read and write files. |
It's a shame you didn't read the InfoCenter entries on those 2 nodes, or you'd have seen that both offer the option to delete the file after processing.
achocks wrote: |
My requirement is to delete a file after FTP'ing ..
Is it possible using WMB 7.0? |
If the FTP server allows it. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Jul 27, 2012 10:30 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
You can delete a file using one of the many different types of Compute nodes available in the toolkit palette. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Buzz Lightyear |
Posted: Thu Feb 01, 2018 10:59 pm Post subject: |
|
|
Newbie
Joined: 29 May 2017 Posts: 9
|
Reviving a very old thread. My question is how can one delete a file in a Compute node (ESQL) ? I have a slightly different requirement, in that, I need to delete one or more files as a part of a compensation branch-flow, as a part of house-keeping exercise should the main flow throw an exception in the midst of processing (the loop !) data. |
|
Back to top |
|
 |
fschofer |
Posted: Fri Feb 02, 2018 1:51 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
You can call a Java procedure from ESQL and delete the files using the Java Files.delete(path). |
|
Back to top |
|
 |
|