Calendar


This utility allows the administrator to enter holidays for each calendar. Calendars are associated with exchanges or issuers and determine default and valid settlement dates on a trade. A calendar is also assigned as your company's default calendar in the System Defaults form to determine if a selected date is a "Business Date", and whether trades can be transacted on that day.

You can add/remove/edit calendars using the DBNavigator at the top of the form.  By default, Saturdays and Sundays are not business days for a particular calendar.  To make either of these business days for a particular calendar, select that calendar and click on the Saturdays On or Sundays On checkbox.

The monthly calendars on this form display the valid business days for the selected year.  Green days represent valid business days for that calendar, red days are not valid business days.  For example, the following month displays a holiday on the 1st.   Saturdays and Sundays are also not valid business days for this calendar.

wpe1.gif (2991 bytes)

To enter a holiday for a particular calendar:

  • select the calendar
  • select the appropriate year by clicking on one of the arrows next to the year displaywpe2.gif (1162 bytes)
  • double click on the date in one of the months; this turns the day red to show that it is not a valid business day
  • type in the Holiday description for that day, e.g. New Year's Day.

To remove a holiday from a calendar, double click on that date; the date turns green to show it is a valid business day.

Holidays must exist for the current year in your company's calendar in order for the Nightly program to run. It is important to enter in values for a calendar before Jan 1 of the coming year.

Holidays are read in once when you run afs:TRADE.  If you change a calendar while users are running afs:TRADE, they must restart in order to pick up your changes.

Technical Notes

The list of calendars is stored in the calendar table.  The holidays for each calendar are stored in the holidays table.