Timing Schedule

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
cjvoss
Newbie
Posts: 2
Joined: Thu Apr 24, 2008 4:01 pm

Timing Schedule

Post by cjvoss » Thu Apr 24, 2008 8:49 pm

Bare with me, I just started using the program so I am going to describe the problem to the best of my ability. I have multiple macros set up to run the same macro at different times for redundancy(so all of the work doesnt have to be redone manually) . Out of the blue one of the macros just quit working properly. The other macros (exactly the same) continue to run properly at their assigned times. I've recreated the macro and tried to run it in a similar time slot, but to no avail. Shutting down the automation is not an option either, everything is time sensitive. Anyone have any ideas to fix this problem with out shutting down macro scheduler? I am assuming its a probelm with macro scheduler for the same reason that it continues to work with the other macros I have set up. I know I am kinda tying hands with out being able to shutdown, restart or uninstall, reinstall. But I would love to hear any ideas...Thanks!

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri Apr 25, 2008 12:37 am

Have you run a log file and looked in that for clues?

Are other activities running while the macro is running?

We probably need to see the macros to come up with good answers for you.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

cjvoss
Newbie
Posts: 2
Joined: Thu Apr 24, 2008 4:01 pm

Post by cjvoss » Wed Apr 30, 2008 7:58 pm

Here is the macrco that is working:
'==================================================='
'OTIS_1_Minute (REVISED: 02/07/04 7:00am)'
'==================================================='
'If the data set U:\hourord.txt '
'exists then run Access OTIS_1_Minute.mdb '
'If not, just end this macro '

'==================================================='
'STEP #1: TEST FOR THE PRESENCE OF THE DATA FILE'
'==================================================='
IfFileExists>U:\hourord.txt,STEP2
goto>END

'==================================================='
'STEP #2: RUN ImportData.mbd'
'NOTE---Date and Time fields are not imported'
'==================================================='
Label>STEP2
Let>PATH=C:\Program Files\Microsoft Office 2000\Office\MSACCESS.EXE
Concat>PATH, X:\PROD_SYS\Applications\New_OTIS_FRONT\OTIS_1_Minute.mdb
Run Program>PATH
waitready>0
Wait>10

'==================================================='
'STEP #3: DELETE THE EXISTING DATA FILE'
'==================================================='
Label>STEP3
DeleteFile>U:\hourord.txt
goto>END

Label>END
'==================================================='
'END OTIS_1_MINUTE (REVISED: 02/07/04 7:00am)'
'==================================================='


Here is the one that quit working:
'==================================================='
'OTIS_1_Minute (REVISED: 02/07/04 7:00am)'
'==================================================='
'If the data set U:\hourord.txt '
'exists then run Access OTIS_1_Minute.mdb '
'If not, just end this macro '

'==================================================='
'STEP #1: TEST FOR THE PRESENCE OF THE DATA FILE'
'==================================================='
IfFileExists>U:\hourord.txt,STEP2
goto>END

'==================================================='
'STEP #2: RUN ImportData.mbd'
'NOTE---Date and Time fields are not imported'
'==================================================='
Label>STEP2
Let>PATH=C:\Program Files\Microsoft Office 2000\Office\MSACCESS.EXE
Concat>PATH, X:\PROD_SYS\Applications\New_OTIS_FRONT\OTIS_1_Minute.mdb
Run Program>PATH
waitready>0
Wait>10

'==================================================='
'STEP #3: DELETE THE EXISTING DATA FILE'
'==================================================='
Label>STEP3
DeleteFile>U:\hourord.txt
goto>END

Label>END
'==================================================='
'END OTIS_1_MINUTE (REVISED: 02/07/04 7:00am)'
'==================================================='

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu May 01, 2008 7:09 am

What does the log file show for the macro that is failing? What is different about the environment at the time the failing macro is scheduled - any screen savers? Windows locked/logged out? Any network shares disconnected at that time? Etc.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts