ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Renaming an XML File while transfering to a file folder

Post new topic  Reply to topic
 Renaming an XML File while transfering to a file folder « View previous topic :: View next topic » 
Author Message
pdmenon
PostPosted: Tue Apr 12, 2011 5:46 am    Post subject: Renaming an XML File while transfering to a file folder Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Apr 12, 2011 5:52 am    Post subject: Re: Renaming an XML File while transfering to a file folder Reply with quote

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
View user's profile Send private message
pdmenon
PostPosted: Wed Apr 13, 2011 2:56 am    Post subject: Reply with quote

Voyager

Joined: 05 Apr 2010
Posts: 80

I got it.

SET OutputLocalEnvironment.Destination.File.Name = 'myid.xml';

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Renaming an XML File while transfering to a file folder
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.