Author |
Message
|
duzer |
Posted: Wed Mar 20, 2013 4:21 am Post subject: QM + FTE v7 |
|
|
Newbie
Joined: 20 Mar 2013 Posts: 3
|
Hi all.
I have QM and FTE v7 deployed on Windows.
In my environtment i must transfer file namde in pattern $C* - started with $C.
I use Monitor for this issue.
When i simply put $C* in fteCreateMonitor.cmd .... -tr match,$C* .... it isn't work.
I have next question:
What i must put in -tr statment to force it work?
C:\IBM\WMQFTE\bin\fteCreateMonitor.cmd -ma AGENT_KIE -mm QMKIE -mn KHA_$C -md F:\KHA.0200 -tr match,$C* -pi 5 -pu seconds -mt C:\KHA_$C.txt
KHA_$C.txt :
<?xml version="1.0" encoding="UTF-8"?>
version="4.00" xsi:noNamespaceSchemaLocation="FileTransfer.xsd">
<managedTransfer>
<originator>
<hostName>192.168.5.155</hostName>
<userID>admin</userID>
</originator>
<sourceAgent QMgr="QMKIE" agent="AGENT_KIE"/>
<destinationAgent QMgr="QMKHA" agent="AGENT_KHA"/>
<transferSet priority="5">
<item checksumMethod="MD5" mode="binary">
<source disposition="delete" recursive="false">
<file>F:\KHA.0200\$C*</file>
</source>
<destination exist="error" type="directory">
<file>F:\in</file>
</destination>
</item>
</transferSet>
</managedTransfer>
</request> |
|
Back to top |
|
 |
nickla23 |
Posted: Wed Mar 20, 2013 5:54 am Post subject: |
|
|
Novice
Joined: 06 Dec 2012 Posts: 12
|
I believe the $ is a reserved character in FTE for variable substitution. You might try enclosing the match pattern in double quotes or using regular expressions to monitor. |
|
Back to top |
|
 |
duzer |
Posted: Wed Mar 20, 2013 6:38 am Post subject: |
|
|
Newbie
Joined: 20 Mar 2013 Posts: 3
|
I tried to put double quotes in this situation.
I tried:
-tr match,\$C*
-tr match,"$C*"
But nothing . |
|
Back to top |
|
 |
nickla23 |
Posted: Wed Mar 20, 2013 6:54 am Post subject: |
|
|
Novice
Joined: 06 Dec 2012 Posts: 12
|
Try using regular expressions, you will have to add (-pt regex) in the command line, without knowing your naming conventions try something like:
[\$][C][A-Z]*
that should work, the backslash is an escape character for the $ |
|
Back to top |
|
 |
duzer |
Posted: Wed Mar 20, 2013 8:05 am Post subject: |
|
|
Newbie
Joined: 20 Mar 2013 Posts: 3
|
Thanks a lot. I am new in MQ and FTE. I will try your suggesion. |
|
Back to top |
|
 |
nickla23 |
Posted: Wed Mar 20, 2013 9:03 am Post subject: |
|
|
Novice
Joined: 06 Dec 2012 Posts: 12
|
No problem, just post back if you have any further issues. |
|
Back to top |
|
 |
|