![]() | ![]() |
|
09-21-2010 11:00 AM
I'm trying to append a date/time stamp to the name of a file MIM is creating in a destination list but no substitution is taking place. I'm using the ${gmtDate}${gmtTime} variable, but that literal is appended to the file name (if the file name is TESTFILE.TXT and I use want to append the name with the time stamp, I put TESTFILE_${gmtDate}@${gmtTime}.TXT.....but the substitution doesn't happen in the destination list....but it does work in a request template, straight FTF). How can I do this in a dlist?
09-21-2010 11:30 AM
Mark,
See this example for how you can use an exit to perform this functionality:
09-21-2010 04:09 PM
Can't seem to find the replaceFileName script in our registry or in our bin file. mvh
09-21-2010 05:54 PM
It is attached to the post in the referred-to article.
11-15-2010 04:43 PM
11-16-2010 09:54 AM
Yes, there was a problem with my example. I have updated it, and reposted it to the original message.
11-17-2010 04:43 PM
11-18-2010 02:52 PM
11-18-2010 03:02 PM
When I run the replaceFileName.xms script, I receive the same error:
XMOException: XMScriptException
'strPolicy' undeclared identifier in line 22
doVariableSubstitution(strPolicy)
{
var temp=strPolicy;
Date::new();
temp=temp.gsub("\\${gmtDate}",Date.gmtDate);
temp=temp
Error Code:103
(:21)
VM terminated with rc = 2000
11-23-2010 11:06 AM
![]() |
![]() |
![]() |
|
|
![]() |
![]() |
![]() |
















