---
title: Schedule Automatic Sorting in DC305
slug: pl-check-links/schedule-automatic-sorting-in-dc305
docTags: 
createdAt: 2026-02-23T07:45:20.787Z
---

:::hint{type="info"}
**NOTE:&#x20;**&#x54;his option currently requires a DairyComp 305 integration with the PULSE. At this time, it is only available to DairyComp Unlimited customers.
:::

::::ExpandableHeading
### Required Setup

:::hint{type="info"}
**NOTE:&#x20;**&#x54;he current VAS PULSE Platform release only supports the Allflex SCR Heatime integration for U.S. customers using Heatime systems. Additionally, users must have Allflex SCR Heatime sorting gates in order to use the sorting features and LED activity transponders in order to use the LED sorting features. VAS plans to support additional Allflex SCR Heatime products in future releases.
:::
::::

DC Unlimited customers can easily schedule when animals are sorted, how often they're sorted, and which group of animals is sorted. After you activate the Allflex integration in the VAS PULSE Platform, follow the instructions below to create and schedule the sort assignments in DairyComp 305. The sort assignments you define are instantly sent to the VAS PULSE Platform, where the information is shared with Allflex SCR Heatime and your animals' sensors.

Follow these steps to start scheduling your sort assignments:

::::ExpandableHeading
## Step 1: Create a New Sort Code

First, you need to define which animals in the herd need to be sorted. Follow these steps to create a new sort code:

1. In DC305 DairyComp 305 - VAS Dairy Management Software, enter `ALTER Command entered to "alter" content or settings in DairyComp. Example: ALTER\7\3` on the command line to open your list of existing commands.
2. In the upper left corner, click **Add \[Ins]**.

::Image[]{src="https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/kiJZ8KiHxuOT2LTwj46my_allflex-schedule-sort.png" size="100" isUploading="false" initialPath="../../Resources/Images/Partners/Allflex/allflex-schedule-sort.png" githubPath="Content/Resources/Images/Partners/Allflex/allflex-schedule-sort.png" position="flex-start" showCaption="false" indent="2"}

3. Enter the new command details (see example above):
   1. **Abbreviation:** Enter an abbreviation for the sort code.
   2. For example, if you only want to sort your dry animals, you could enter `DRYCUT`.
      **Content:** Enter the command for the sort code.
   3. In this example, you could enter `CUT=1 for DCC Days carrying calf/pregnant>240 LACT Lactation number>0` to sort out the dry animals in your herd. Specifically, this command tells the system to sort animals (**CUT=1**) that have carried its calf for more than 240 days (**DCC>240**) and have had at least one lactation (**LACT>0**).

:::hint{type="info" indent="3"}
**NOTE:&#x20;**&#x49;f you use a different user-defined item that is not named `CUT`, replace `CUT` with your customized abbreviation.
:::

:::Paragraph{indent="2"}
Visit the [DC305 Online Help](https://dc-help.vas.com/ReferenceGuide/CommandLine/UsingCmdLine.htm) for detailed instructions on creating commands!
**Title (Optional):** Enter a description if you want.
:::

4. Click **OK** to save the new command.
::::

:::ExpandableHeading
## Step 2: Create a New Clear Code

Before you can schedule when your herd should be sorted, you need to remove existing sort assignment tasks from the schedule. Use the following instructions to create a new clear code that you can enter to clear out pre-existing sorting tasks:

1. In DC305 DairyComp 305 - VAS Dairy Management Software, enter `ALTER\3` on the command line to open your list of existing commands.
2. In the upper left corner, click **Add \[Ins]**.

::Image[]{src="https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/JnOR6C7hVocc5vnME1prO_allflex-schedule-clear.png" size="100" isUploading="false" initialPath="../../Resources/Images/Partners/Allflex/allflex-schedule-clear.png" githubPath="Content/Resources/Images/Partners/Allflex/allflex-schedule-clear.png" position="flex-start" showCaption="false" indent="2"}

3. Enter the new command details (see example above):
   1. **Abbreviation:** Enter an abbreviation for the clearing task, such as `CLRCUT`.
   2. **Content:** Enter `CUT=0 FOR CUT>0`, which tells the system to clear any existing sort code tasks.
   3. Visit the [DC305 Online Help](https://dc-help.vas.com/ReferenceGuide/CommandLine/UsingCmdLine.htm) for detailed instructions on creating commands!
      **Title (Optional):** Enter a description if you want.
4. Click **OK** to save the new command.
:::

:::ExpandableHeading
## Step 3: Add Tasks to the Task Scheduler

After creating a new sort code and a new clear code, you can now schedule when your animals are sorted:

1. Enter `ALTER\6 `on the command line to open the Task Scheduler window, which displays a list of all scheduled tasks.
2. In the upper left corner, click **Add \[Ins]**.

::Image[]{src="https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/kReL9B3x6p6n8YVET2xGg_allflex-schedule-info.png" size="100" isUploading="false" initialPath="../../Resources/Images/Partners/Allflex/allflex-schedule-info.png" githubPath="Content/Resources/Images/Partners/Allflex/allflex-schedule-info.png" position="flex-start" showCaption="false" indent="2"}

3. In the pop-up window, define the following information (see example above):
   - **Next Date&#x20;**&#x61;n&#x64;**&#x20;Next Time:** Enter the date and time the task should start to run. We recommend setting the time to 30 minutes before the first shift starts to ensure that all sorting assignments are synced between DairyComp 305, VAS PULSE Platform, and the Allflex SCR Heatime sensors.
   - **Last Date (Optional):** Enter the date when you want the sorting task to stop.
   - **Interval Unit&#x20;**&#x61;n&#x64;**&#x20;Interval:** Select the interval type from the drop-down list (hours, days, or months) and enter the interval amount.
   - **Command to Run**: Enter the clear code you created in [Step 2](docId\:fadQXbFx-MdlJWVd69jZw), then the sort code you created in [Step 1](docId\:fadQXbFx-MdlJWVd69jZw), separated by an exclamation point. For example, if your clear code is `CLRCUT `and your sort code is `DRYCUT`, enter `CLRCUT!DRYCUT`.
4. Click **OK** in the upper right corner to save the new task.
5. The clearing and sorting tasks will now run on the Next Date and Next Time that you specified above.
   Click **Exit** in the bottom left corner of the Task Scheduler window to close it.
:::

[\< Return to Allflex SCR Heatime Overview](docId\:qH4zLeAmPYKUGXuC3XWMH)
