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 » Trigger based transfer using fteCreateTransfer/CreateMonitor

Post new topic  Reply to topic
 Trigger based transfer using fteCreateTransfer/CreateMonitor « View previous topic :: View next topic » 
Author Message
ajaykverma
PostPosted: Thu Dec 21, 2017 1:28 am    Post subject: Trigger based transfer using fteCreateTransfer/CreateMonitor Reply with quote

Newbie

Joined: 26 Sep 2016
Posts: 9

We have a requirement to transfer a file having more than 100MB to a reject directory reject and other files to arch directory.

I have user fteCreateTransfer with -tr, its moving all the files to reject and arch directory, also trigger option i.e. -tr we can ONLY apply on file not on directory.

When I tried to use CreateMonitor, transfer is not happening at all.

CreateTransfer Command:

fteCreateTransfer -w -jn "UMCMWFTE0018.SPIV251" -sa ${SapAgent} -sm ${QMgr} -da ${SapAgent} -dm ${QMgr} -t binary -sd leave -tr filesize">"=100MB,"/IFR/send/Intrastat_20171219111808.XML" -tl no -de overwrite -dd "/IFR/reject/" "/IFR/send/*.XML"


Part of FileTransfer used in CreateMonitor command:

Code:
<trigger log="yes">
<fileSize comparison=">=" value="100MB">/IFR/send/</fileSize>
</trigger>
    <transferSet>
      <item checksumMethod="MD5" mode="binary">
        <source disposition="delete" type="file" recursive="false">
          <file>/IFR/send/*.XML</file>
        </source>
        <destination exist="overwrite" type="file">
          <file>/IFR/reject/*.XML</file>
        </destination>
      </item>
    </transferSet>

Note: There is no error while executing CreateMonitor command, but it not doing any transfer at all.

Any help in this regard would be really helpful.

ALSO

if you can let us know how to filer the files of size 100MB from a directory than using FTE commands, that could also help us a lot.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 21, 2017 5:15 am    Post subject: Re: Trigger based transfer using fteCreateTransfer/CreateMon Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Regardless of how you create the FTE command should the xml not read like

Code:
<trigger log="yes">
<fileSize comparison="&gt;=" value="100MB">/IFR/send/</fileSize>
</trigger>
    <transferSet>
      <item checksumMethod="MD5" mode="binary">
        <source disposition="delete" type="file" recursive="false">
          <file>/IFR/send/*.XML</file>
        </source>
        <destination exist="overwrite" type="file">
          <file>/IFR/reject/*.XML</file>
        </destination>
      </item>
    </transferSet>


Note the change in the file size comparison...
You might also try using ge or gt instead of arithmetic symbols...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
ajaykverma
PostPosted: Thu Dec 21, 2017 8:24 pm    Post subject: Re: Trigger based transfer using fteCreateTransfer/CreateMon Reply with quote

Newbie

Joined: 26 Sep 2016
Posts: 9

Thanks for response "fjb_saper".

I tried arithmetic symbol, but still no success.

Below snapshot what I tried:

fteCreateMonitor -ma ${SapAgent} -mn UMCMWFTE0018.SPIV251 -mm ${QMgr} -md "/IFR/send/" -pi 5 -pu minutes -tr "fileSize>=100MB,*.XML" -f -c -mt ${FteTemplateDir}/UMCMWFTE0018.SPIV251.xml

Where UMCMWFTE0018.SPIV251.xml contains:

<?xml version="1.0" encoding="UTF-8"?>
<request version="6.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FileTransfer.xsd">
<managedTransfer>
<originator>
<hostName>hostname</hostName>
<userID>mqfteuser</userID>
</originator>
<sourceAgent QMgr=${vfQMgr} agent=${vfSapAgent}/>
<destinationAgent QMgr=${vfQMgr} agent=${vfSapAgent}/>
<trigger log="yes">
<fileSize comparison="&gt;=" value="100MB">/IFR/send/</fileSize>
</trigger>
<transferSet>
<item checksumMethod="MD5" mode="binary">
<source disposition="delete" type="file" recursive="false">
<file>/IFR/send/*.XML</file>
</source>
<destination exist="overwrite" type="file">
<file>/IFR/reject/*.XML</file>
</destination>
</item>
</transferSet>
<job>
<name>UMCMWFTE0018.SPIV251</name>
</job>
</managedTransfer>
</request>

I am not sure whats wrong as it does not give any error, but no Transfer happening.

Any help to make this work, would be really helpful to us.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Dec 22, 2017 5:22 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

I think it's time to read the manual to get the exact syntax for your case.
So I am looking at your command line and there is nothing that strikes me as not being covered in the manual...

Open a PMR if the file is not getting transferred and is over 100MB.
Verify if there is a size for the individual messages that you can set. 100MB is too big for a single message. (You also have to account for the headers)
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ File Transfer Edition » Trigger based transfer using fteCreateTransfer/CreateMonitor
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.