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?
Re: QM + FTE v72013-03-19T06:44:48ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
This is obviously.
I didn't have any error.
I put match pattern in -tr key for fteCreateMonitor command. That was -tr match,$C* .
And nothing happed.
Files started with $Cbla_bla_bla didn't copy from directory source to destination QM and destination directory.
This is the reason why i asked you, you know.
Re: QM + FTE v72013-03-19T14:48:03ZThis is the accepted answer. This is the accepted answer.
- R_Simons 27000167KS
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
<?xml version="1.0" encoding="UTF-8"?>
<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="4.00" xsi:noNamespaceSchemaLocation="FileTransfer.xsd">
<sourceAgent QMgr="QMKIE" agent="AGENT_KIE"/>
<destinationAgent QMgr="QMKHA" agent="AGENT_KHA"/>
<item checksumMethod="MD5" mode="binary">
<source disposition="delete" recursive="false">
<destination exist="error" type="directory">
R_Simons 27000167KS4 Posts
Re: QM + FTE v72013-03-20T17:33:38ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
Problem #2 - Since the monitor has a wild card specified in the -tr parm, one or more files can meet the match criteria. This means that for each file that matches, a transfer definition file will be submitted for it. If you don't us variable substitution to pass the matched file name to the transfer definition, then the same file could be transfers the number of times the monitor found matches.
Problem #3 - The transfer definition file has a static file for the destination file name. Based upon problem #2, this would be an issue. Transfer #1 would be successful and all other subsequent transfers would fail because of of the exist parm set to "error". If you wanted to transfer more that one file matched, you will need to use variable substitution to make the destination file name unique for each transfer.
If your file name does have the "*" in it, then you may need to put the match string in quotes in the fteCreateMonitor command