|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Renaming an XML File while transfering to a file folder |
« View previous topic :: View next topic » |
Author |
Message
|
pdmenon |
Posted: Tue Apr 12, 2011 5:46 am Post subject: Renaming an XML File while transfering to a file folder |
|
|
 Voyager
Joined: 05 Apr 2010 Posts: 80
|
Dear Experts,
I have generated an XML file using compute node, and I need to transfer this XML file into a particular "FileFolder" using "FileOutput" Node.
Scenario over here is: While transfering this XML File to the destination folder, I need to rename this XML file. File name should be renamed, basing on a particular value "id" from the XML file.
In "FileOutput" Node properties, In "Basic" tab, for now, I hardcoded value in the field "File name (or) pattern".
How can I do that? Do I need to set the "id" value in any variable? or how to proceed for this?
Need your valuable inputs. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Apr 12, 2011 5:52 am Post subject: Re: Renaming an XML File while transfering to a file folder |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
pdmenon wrote: |
Do I need to set the "id" value in any variable? |
Yes - the one described in the FileOutput node's section in the InfoCenter. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pdmenon |
Posted: Wed Apr 13, 2011 2:56 am Post subject: |
|
|
 Voyager
Joined: 05 Apr 2010 Posts: 80
|
I got it.
SET OutputLocalEnvironment.Destination.File.Name = 'myid.xml';
 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|