Author |
Message
|
jeevan |
Posted: Wed Feb 07, 2007 5:57 pm Post subject: The transferred file has garbase name in PM4DATA, pls help |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
I am able to setup pm4dat to monitor a directory and transfer files. However, the transferred files have name like this:
this12.txt.20070208014727.0d6d91e2779440febe9867302b81afa0.xlk
Also, the extension has been changed. Could you please give me some idea where to look at? log file does not help.
thanks |
|
Back to top |
|
 |
Biju |
Posted: Thu Feb 08, 2007 2:11 am Post subject: |
|
|
 Acolyte
Joined: 03 Oct 2005 Posts: 71
|
Could you confirm if you have seen this name on the destination folder? Or did you take this file name from PM4Data?
Normally the file name conversion happens in the source when PM4Data agent picks up the file but you still will have a file name of your choice at the destination with the same data. The one that you would specify in the request.
I havent used PM4Data much but this is my understanding of PM4Data.
Thanks,
Biju |
|
Back to top |
|
 |
ashoon |
Posted: Thu Feb 08, 2007 11:07 am Post subject: use the GUI |
|
|
Master
Joined: 26 Oct 2004 Posts: 235
|
did the file successfully transfer? what is the filename you've set for the recieve file? |
|
Back to top |
|
 |
jeevan |
Posted: Thu Feb 08, 2007 2:41 pm Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
ashoon wrote
Quote: |
did the file successfully transfer? what is the filename you've set for the recieve file?
|
Yes, i can receive file successfully. But it changes name as below:
SERVICES._.20070208152015.44e272af05484a5ab73b72f17287ed5f.xlk
It adds whole stuff at the end of the feil at the same time, it gives another extension. It is so annoying.
I think, we can not give a file name in multiple file transfer. we only mentioned source and destination directory in request template. However, very interesting thing is, when i use the manual template with similar attribute, it transfer file without any problem.
thanks |
|
Back to top |
|
 |
ashoon |
Posted: Thu Feb 08, 2007 2:58 pm Post subject: do us a favour |
|
|
Master
Joined: 26 Oct 2004 Posts: 235
|
post your settings for your directory monitor request.
try $XMDM_ORIGINAL_NAME$ as the destination file name |
|
Back to top |
|
 |
jeevan |
Posted: Thu Feb 08, 2007 3:37 pm Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
request template
source qmg; qmgra
destination qmgr: qmgrb
source file name : c:\pm4_datas
destination file name c:\pm4_datad
multifile transfer yes
as i said, if I give file name in multifile transfer option is checked, it does not work. so i have only mentioned director
director monitored
c:\pm4_datas
included *
if you like, can send u screen shot, where can i send ?
thanks |
|
Back to top |
|
 |
jeevan |
Posted: Thu Feb 08, 2007 5:17 pm Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Hi,
I got the explanatio of my problem.
Quote: |
When Dirmon establishes that the file is stable, it renames it to "." + filename + YYYYMMDDHHMMSS + UUID + ".xlk".
|
But the manual does not say how i can get the orinial name back when it delivers at the destination.
It is ridiculul to deliver file like that. There should be some way, but i could not find anything in doc.
Any idea how to get the destination file in original name?
thanks |
|
Back to top |
|
 |
ashoon |
Posted: Thu Feb 08, 2007 6:00 pm Post subject: wrong setup... |
|
|
Master
Joined: 26 Oct 2004 Posts: 235
|
take off multi-file transfer... it's not needed...
in your directory monitor instance you create an entry - in this entry you have an include and exclude list... if you want to move everything just put *.* in the include section.
in the transfer template - put your SQM filename as $XMDM_PATH$
your DQM filename as c:\yourDir\$XMDM_ORIGINAL_NAME$
good luck |
|
Back to top |
|
 |
jeevan |
Posted: Fri Feb 09, 2007 4:35 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Ashoon,
That seems working. However, one last thing, my need is to transfer different kinds of files based on extension. That is ok i can put *.txt or *.tst in include. But occassionally, there may be files ( wrong files) without any extension. I could not transfer these file. I tried with *. as I can not put * as this means all files. I also tried ????????. ad ???????? both did not work. Any idea to move only file without extension.
thanks a lot |
|
Back to top |
|
 |
jeevan |
Posted: Sat Feb 10, 2007 6:48 am Post subject: Problem in regular expression |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
I am having problem to express file name without extension to PM4DATA file transfer request.
I can transfer file with certain extension as *.txt or *.tst. But nothing works for a file without extension. I tried
*.
* ( according to the doc, this expression should select all files)
????????
I also tried to have regular expression as follows:
[a-zA-Z0-9]+\. and [a-zA-Z0-9] neither of this works.
Could you please give me some idear?
thanks |
|
Back to top |
|
 |
|