Author |
Message
|
dosttumhara1810 |
Posted: Fri Apr 15, 2011 2:14 am Post subject: Amend data using FileOutput node |
|
|
Voyager
Joined: 01 Dec 2010 Posts: 76
|
Hi All,
I am using MB 6.1.0.4
Issue i am facing using Fileoutput node. I am not able to amend data to a file using this node. Everytime new file is created and previous file goes to mqsiarchive folder. Is this issue with MB. Do we have any property to set Amend mode. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Apr 15, 2011 2:23 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The full list of properties that can be set are listed in the Infocenter. If you have reviewed this, and failed to find a property, it is not clear why you have asked.
No, you can not append to an existing file using FileOutput node.
You can append to an incomplete file, but once you have marked the file for complete, you can no longer append to it. And you can not START an incomplete file with an existing file, it must always start as a NEW file.
You should reexamine your requirement to append to an existing file. You might, for example, be able to use a Trace node for what you want.
Or you might find that you are using a file in a poor way and should instead use something other than a file. |
|
Back to top |
|
 |
dosttumhara1810 |
Posted: Fri Apr 15, 2011 3:54 am Post subject: |
|
|
Voyager
Joined: 01 Dec 2010 Posts: 76
|
|
Back to top |
|
 |
zpat |
Posted: Fri Apr 15, 2011 4:01 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I have registered this requirement with IBM for consideration in a future release of WMB. It's a fairly obvious one.
The FTP command has an append option which is not available in WMB, but if you create a file and then FTP it some other way (e.g. a cron job) you could use the FTP append option at that time. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Apr 15, 2011 4:22 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
zpat wrote: |
I have registered this requirement with IBM for consideration in a future release of WMB. It's a fairly obvious one. |
I don't disagree.
Except that I believe that the only kind of file you should be writing to on a continual basis is a log file.
If you have business data, that for example needs to aggregate over a period of time, you should stick it in a managed data store like a database or a queue. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Apr 15, 2011 5:07 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
If I recall correctly, the MBFE Nodes which preceeded the availability of the FileInput & FileOutput nodes in V6.1 did have an 'append' option.
I always thought that this was a little mistake by IBM here. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
zpat |
Posted: Fri Apr 15, 2011 5:34 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
In my FTP example, the other end periodically processes the data and clears the file. But it expects the file to contain all the data sent in the intervals between these. It will arrive in more than one transfer.
Yes, I know this is what MQ is for and believe me I had that argument since the target platform has MQ on it. But they didn't want to change it. |
|
Back to top |
|
 |
|