When FRfiledate = Today the script goes to the Close label. Can someone tell by looking at the code or do you need the data files why the macro is not working?
[Year>yyyy
Month>mm
Day>dd
Filedate>\\n2k3wb972ftp01\ftproot\FTPholly\CASHFR.txt,FRfiledate
Let>Today=%YYYY%%mm%%dd%
If>Today=FRfiledate,runmacro,Close
label>runmacro
message>%Today% = %FRfiledate%
label>Close
message>Close MS]
[/code]
Script doesn't work
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
The close label will ALWAYS get executed. If FRFileDate is today you tell the script to go to label>runmacro which is the next line. It then displays a message and then immediately goes to Label>close. So your script will ALWAYS process label>close.
You probably mean to do something like this:
Note I have also used MessageModal instead - MessageModal will wait for the user to press ok before they disappear. Otherwise the script will continue as soon as he message appears. This may be what you want, but for testing purposes MessageModal is usually better.
You probably mean to do something like this:
Code: Select all
Year>yyyy
Month>mm
Day>dd
Filedate>\\n2k3wb972ftp01\ftproot\FTPholly\CASHFR.txt,FRfiledate
Let>Today=%YYYY%%mm%%dd%
If>Today=FRfiledate
MessageModal>%Today% = %FRfiledate%
Else
MessageModal>Close MS
Endif
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?