• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 845
  • Last Modified:

Run Lotus Notes Agent quarterly

I have a Lotus Notes agent that I want to schedule run quarterly. How can I do that? I see there is an option to run daily, weekly, and monthly but no quarterly.
0
coronoahcoro
Asked:
coronoahcoro
  • 3
  • 2
1 Solution
 
Sjef BosmanGroupware ConsultantCommented:
There is no such option. Choose one of the other options, and decide at the start of the agent if the agent should continue or not. For the sake of flexibility we had a daily agent that executed the main code only weekly. A configuration document determined when it was to execute. The other days it ran and terminated directly after testing the day of the week. You can do something similar in your code: run the agent monthly and terminate the agent two out of three times.
0
 
Steve KnightIT ConsultancyCommented:
Agreed, I do the same with various agents to give users control over their execution without needing design change.  Schedule it daily, or several times daily as appropriate and then check configuration profile/document for that one to see when they want it to run.

In this case put it on monthly, set day to 1st or whatever and then check month(today) at the top, i.e.

Select Case Month(Today)
      Case 1,4,7,10
            'YourSub()
      Case Else
            ' Record in log not for today please...
End Select

or

IF (month(today)-1) MOD 3 = 0 then
   ' Is Jan, Apr, July, October
End If

Steve
0
 
Sjef BosmanGroupware ConsultantCommented:
Nice!
0
 
Steve KnightIT ConsultancyCommented:
For 200 point question bit much info... oops!
0
 
Steve KnightIT ConsultancyCommented:
Thanks for the grade and tipping me onto the next certification in this zone.

Steve
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now