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 » IBM MQ File Transfer Edition » FTE Copy multiple files

Post new topic  Reply to topic
 FTE Copy multiple files « View previous topic :: View next topic » 
Author Message
matuwe
PostPosted: Fri Jul 27, 2012 2:17 am    Post subject: FTE Copy multiple files Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Hi



How can I get my fte:copy to work like the ant file below

Code:

<copy todir="/test/arch">
   <path>
         <fileset dir="/SrcDir" includes="test*.lst" />
         <fileset dir="/SrcDir" includes="test.*.done" />
      </path>
</copy>



I tried
Code:


<for param="file">
      <path>
         <fileset dir="${SrcDir}" includes="test.*.lst" />
         <fileset dir="${SrcDir}" includes="test.*.done" />
      </path>
      <sequential>
<fte:filecopy cmdqm="${cmdQM}" src="${srcAgent}" dst="myAgent@myQMGR1" priority="1" idproperty="move.uuid" outcome="await" jobname="${jobName}" rcproperty="move.result">
   <fte:metadata>
    <fte:entry name="jobNumber" value="${jobNumber}" />
   </fte:metadata>
   <fte:filespec srcfilespec="@{file}"
    dstfile="/testdir/arch/@{fileName}" conversion="text" overwrite="true" />
   
  </fte:filecopy>
</sequential>
   </for>



The results the copy file name is right, but the destination filename is incorrect. which variable can one use to pick up the file name that is been transferred with out the full path.

FileName always show the trigger file path and if I am doing multiple file archives/copy then i do not get other file names.
Back to top
View user's profile Send private message
rsimons99
PostPosted: Mon Aug 27, 2012 9:46 am    Post subject: Reply with quote

Newbie

Joined: 11 Feb 2009
Posts: 5

Look at the Ant task "basename"
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 » IBM MQ File Transfer Edition » FTE Copy multiple files
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.