|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Trigger based transfer using fteCreateTransfer/CreateMonitor |
« View previous topic :: View next topic » |
Author |
Message
|
ajaykverma |
Posted: Thu Dec 21, 2017 1:28 am Post subject: Trigger based transfer using fteCreateTransfer/CreateMonitor |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Dec 21, 2017 5:15 am Post subject: Re: Trigger based transfer using fteCreateTransfer/CreateMon |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Regardless of how you create the FTE command should the xml not read like
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 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 |
|
 |
ajaykverma |
Posted: Thu Dec 21, 2017 8:24 pm Post subject: Re: Trigger based transfer using fteCreateTransfer/CreateMon |
|
|
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=">=" 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 |
|
 |
fjb_saper |
Posted: Fri Dec 22, 2017 5:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
|
|
 |
|
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
|
|
|
|