DeleteAllExceptions Macro | Teradata Vantage - 17.10 - DeleteAllExceptions - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Date and Time Functions and Expressions

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1211-171K
Language
English (United States)

You can use this macro to delete all of the exceptions from a specific business calendar. When you delete all exceptions, the status for all exception days automatically reverts to the status defined for the days in the pattern for the calendar.

When you execute the macro, all exceptions are removed from the calendar and from the DBC.BusinessCalendarException table.

If you need to delete a particular exception from a calendar, use the DeleteException macro (see DeleteException).