Events Command
The EVENTS command is a powerful and versatile tool used to retrieve, summarize, and analyze historical event data for individual animals or the entire herd. It goes beyond the active cowfile by automatically accessing archived records, providing a complete historical overview.
There are two ways to use the EVENTS command:
-
Event Options menu: Choose from a list of options for basic reports using default settings and no customization.
-
Command Line mode: Enter the EVENTS command along with a string of parameters to customize your report, such as FOR statements and switches.

To open the Events Options menu, enter EVENTS in the command line.
The options in this menu directly correspond to the numbered command line options (explained below). For example, selecting List cows and events from the menu is the same as running EVENTS\2 from the command line. This option creates a complete list of events for every animal ID:
Notice that the report shows the events per animal for the past year (08/11/24 to 08/11/25 in the example image). This is because running reports directly from the Events Options menu does not allow you to customize them. For more detailed and customized reports, you'll need to use the command line.
See Report Types for detailed descriptions of the options on the Event Options menu.

To build custom reports without using the Event Options menu, the following format allows you to create a powerful one-line command:
EVENTS [Item List] [Event Codes] FOR [Condition] BY [Item] \n[Switches]
-
[Item List]: This is an optional list of fields (like ID, PEN, or DIM) to include in your report.
-
[Event Codes]: A list of events you want to focus on (e.g., FRESH BRED). This part is only used by specific reports, such as EVENTS\2.
-
FOR [Condition]: An optional filter to narrow your report to a certain group of animals (e.g., FOR PEN=10).
-
BY [Item]: An optional statement to group the report's output by a certain field.
-
\n: A backslash followed by a number n that selects a specific report from the EVENTS menu. This is the key part of the command that tells the program which report to run.
-
[Switches]: Additional single-letter switches that customize the report's output and behavior.
Click below for two examples of actual EVENTS commands and a breakdown of how they work:

EVENTS ID FRESH BRED PREG FOR PEN=10 \2S
Entering this command does the following:
-
It lists the ID of each animal.
-
It filters the report to show only FRESH, BRED, and PREG events.
-
It only look at animals that are FOR PEN=10.
-
The \S switch prompts you to select a date range for the selected events.

EVENTS FOR LACT=2 \3S
Entering this command does the following:
-
This report displays the calves born for animals entering their second lactation (FOR LACT=2).
-
\S prompts for a range of FRESH dates.

Add these single-letter switches to a numbered report to customize results:
-
\A: Use archive mode, which includes live cows and those waiting to be archived, but not cows that have already been marked as dead.
-
\B: Include both live and dead animals in the report.
-
\C: Count number of PREG/OPEN events; also ignores EDAT and uses BDAT on purchased animals.
-
\E: Include the expected milk column in the output.
-
\H: Include the herd code in the output.
-
\I: Inquire, which means the program will ask you to select which events to include.
-
\O :Orientate the calendar months by date order, not calendar order (EVENTS\5).
-
\P: Print the report automatically.
-
\Q:Quantitate protocol usage for an event.
-
\R: Remember the current report settings for later use.
-
\S: Select a date range, asking you for a start and end date. For example, \S30 would show data from the last 30 days.
-
\V: Include extra events or DIM and EC in event dumps.
-
\X: Disable archive file searching.
-
\Y: Include youngstock (heifers) in the report.
-
\W: Displays results by day of the week.
-
\Z: Include the event row even if the event count is zero.

The \R switch allows you to save a complex report setup so you can run it again later with a simple command.
-
Create your full command with the desired parameters and the \R switch, such as EVENTS ID PEN DIM \2IR.
-
The program will then prompt you to save the settings by giving it a number (0-64).
-
Once saved, a file (e.g., EVENTS35.HDR) is created in your DC305 folder.
-
To automatically run the same report in the future, run EVENTS\R35.

Below are the main reports you can run with the EVENTS command, either from the Events Options menu or from the command line using a switch:

This command creates a list of cows with the selected events. It shows you a clean, simple list of every time an event happened. This command uses the [Item List], [Event Codes], and FOR [Condition] parts of the full command syntax.
Command Line Example: EVENTS ID PEN DIM FRESH BRED FOR PEN=10 \2SI will list every FRESH and BRED event for cows in Pen 10, including their ID, Pen, and Days in Milk, then prompt you to choose a date range.

This command creates a detailed table of calf information about freshenings. By default, it looks at the last year of data.
-
The percentages are calculated as following:
-
None = Fresh with no known calf information
-
%Twins = Twins/Fresh
-
%Female = Female / (Male + Female)
-
%Dead = Dead / (Alive + Dead)
-
%M:Dead = M:Dead/Male
-
%F:Dead - F:Dead/Female
-
-
SOLD count is the number of calves born by not added to DC305.
-
DCC is the count of FRESH events where cow is outside DCC (days carried calf) range of 266-294 (normal gestation).
Command Line Examples:
-
EVENTS FOR LACT=1 \3 creates a calf summary report only for first-lactation cows.
-
EVENTS\3 BY %190.PSIRC.7 creates a calf table report grouped by semen type (U - unsexed, S - sexed, B - Beef semen).

This command is a specialized utility that writes test day records to a disk file. The records are exactly as they appear on the Test Days tab of the CowCard. This is often used for advanced analysis with other software. The command can be customized using FOR statements and switches.
Command Line Example: EVENTS FOR PEN=20 \4S
-
This command runs the \4 (List Test Day Records) utility.
-
It filters the data to only include animals that are FOR PEN=20.
-
\S prompts for a range of dates.

This report summarizes all events that happened each month. This is a good way to track the overall activity of the herd over time, especially for scheduled events like monthly pregnancy checks. This report is different from EVENTS\7, which groups by the month an animal freshened, not by the month the event occurred.
Command Line Examples:
EVENTS FRESH DRY \5S
-
This command runs the \5 (Table by Month) report.
-
It specifically summarizes FRESH and DRY events.
-
The \S switch prompts for a specific date range for the report.
EVENTS \5W7 reports all events recorded in the last 7 days.

This command breaks down event counts into groups based on how many days the animal has been in milk (DIM). This report shows the distribution of events throughout a lactation. For example, you can use it to see at what DIM range most breedings or health events occur, helping you identify trends or management issues.
Command Line Examples:
EVENTS BRED FOR DIM>40 \6S
-
This command runs the \6 (Table by Days in Milk) report.
-
It only counts BRED events.
-
It filters the data to only include BRED events that happened when the animal had DIM>40 (Days in Milk great than 40).
-
The \S switch prompts for a specific date range for the report.
EVENTS ID FDAT LACT METR MF KETO DA MAST\6
-
Displays transition events (METR, MF, KETO, DA, MAST) by Days in Milk.
-
Lists the animal's ID, fresh date, and lactation number.

This report is designed to group events by the month an animal freshened, not by the month the event occurred. This can be a useful way to analyze groups of animals that calved around the same time.
Command Line Example: EVENTS BRED FOR LACT=1 \7
-
This command runs the \7 (Table by Month of Fresh) report.
-
It counts BRED events.
-
It filters the data to only include events for animals in their first lacation (LACT=1).
-
The output shows a table with breeding events grouped by the month those first-lactation cows freshened.