---
title: Command Line
slug: pl-check-links/command-line
docTags: 
createdAt: 2026-02-23T07:45:23.114Z
---

::::ExpandableHeading
### Required Setup

:::hint{type="warning"}
**IMPORTANT:&#x20;**&#x54;his feature is not available in all markets and regions.
:::
::::

:::ExpandableHeading
### Can't find this feature? Make sure it's included in your subscription!

This feature/option is available only for DC Unlimited subscribers. MyDC subscribers will not see it in PULSE.

Click [here](docId\:jwUSXGpK0Q1fVyl3QyB1n) to learn more about the different versions of PULSE.
:::

The Command Line brings the power of DairyComp into PULSE, allowing you to generate many of the same reports you're able to view in DairyComp. PULSE Command Line currently supports the [LIST (SHOW)](docId:8Y5dE-4WdBrAa7jzXD8Mn), [SUM](docId\:JGoDnFLIEmnUVqzZahqvC), [COUNT,](docId\:n6QRXNb8RhlrlC1-rKkG_) and [ENTER](docId\:QPp80-Z_uZQsNf8YDRzeN) commands. You can find this feature on the [main menu bar](docId\:T93yU--9puoivxMGYpo5g), or by selecting **F9** from your keyboard.

![](https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/Uk6Hh_rzFKrlJlx1deMcO_intro-cmdline.png)

A typical command consists of the 5 parts defined below.

![](https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/J_uOaNiyLsaSmgn8mR9Je_cmdline-syntax-example-new.png)

:::ExpandableHeading{indent="2"}
## Command Word: Start by typing a command word. Click here to learn more!

The command word controls the type of report you run. The following commands are supported in PULSE:

- LIST or SHOW: Generates a listing of animals with certain items and conditions. In PULSE command line, LIST and SHOW are interchangeable commands. In DairyComp, the LIST command may be used to print the report, while SHOW displays the report on the screen. See [LIST (SHOW) Command](docId:8Y5dE-4WdBrAa7jzXD8Mn) for helpful sample commands!
- SUM: Generates averages for specific items or animals within certain groups and presents the details in a table or graph. See [SUM Command](docId\:JGoDnFLIEmnUVqzZahqvC) for helpful sample commands!
- COUNT: Calculates the total number of animals that match certain items and conditions. See [COUNT Command](docId\:n6QRXNb8RhlrlC1-rKkG_) for helpful sample commands!
- ENTER: An ENTER command changes stored item values for multiple animals at once if the animals match certain conditions. PULSE then generates a report listing all the updated item values. See [ENTER Command](docId\:QPp80-Z_uZQsNf8YDRzeN) for more information.
:::

:::ExpandableHeading{indent="2"}
## Switches: (Optional) Use one or more switches to affect or limit which data is included in your report. Click here to learn more!

In PULSE command line, any switches must immediately follow the command word. The following switches are currently supported in the specified command(s): 

| Switch | Definition                                                                                                                                                                         | Command(s)          | Example                                                                                                                                              |
| ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| \B     | Includes results for both live and dead animals. Without the switch, command results include live animals only.                                                                    | COUNTLIST (SHOW)SUM | LIST \B ID LACT DIM RPRO ARDAT FOR FDAT>-7 BY  LACTCapture live and dead animal data for recently freshened animals by lactation.                    |
| \D     | Limits results to dead cows only.                                                                                                                                                  | COUNTLIST (SHOW)SUM | COUNT \D FOR LACT=1 ARDAT>-90Capture total number of dead animals in their first lactation in the last 90 days.                                      |
| \S     | Sets the standard deviation calculation to use sample values. Without the switch, PULSE calculates population standard deviation.                                                  | SUM                 | SUM \S MILK PCTF PCTS LGSCC BY lact FOR LACT>0Analyze sample standard deviation data for milk composition and quality by lactation.                  |
| \Z     | Includes zero values in averages and standard deviation calculations. Without the switch, average, standard deviation, mode, and median calculations include non-zero values only. | SUM                 | SUM \Z TKET BY LCTGP FOR FDAT>-365Analyze the number of times ketosis was diagnosed by lactation group for all animals that calved in the last year. |
:::

:::::ExpandableHeading{indent="2"}
## Items: Type the items you want to include in your report. Items define the data you want to see in your report. Click here to learn more!

Follow these guidelines for items in your command:

- The ID item is included in LIST reports by default, so including it is optional.
- Insert a space between items.

::::ExpandableHeading
### Show me some examples!

In the command example above, the items are ID, PEN, LACT, DIM, DCC, and MILK:

`LIST \Z ID PEN LACT DIM DCC MILK`` FOR LACT>0 DCC>220 DDAT=0 BY PEN`

This tells the report to include columns for the animal ID, pen number (PEN), lactation number (LACT), days in milk (DIM), days carried calf (DCC), and milking weights (MILK).

Here are a few examples of items you can use:

| Item | Description                                    |
| ---- | ---------------------------------------------- |
| ID   | The animal's ID number.                        |
| PEN  | The animal's current PEN number.               |
| LACT | The animal's current lactation number.         |
| DIM  | The animal's current days in milk.             |
| MILK | Pounds of milk the animal last produced.       |
| RPRO | The animal's current reproductive code.        |
| DCC  | How many days the animal has carried its calf. |
| DSLH | How many days since the animal's last heat.    |

:::hint{type="info"}
**TIP:&#x20;**&#x54;o see all available items for your dairy, go to your [Item Definitions](docId\:hJQ1H-v5u1aAtTDYLsMFG).
:::
::::
:::::

::::ExpandableHeading{indent="2"}
## Conditions: (Optional) Type any conditions you want to include in your report. Conditions limit your report to specific data. Click here to learn more!

When you want to define one or more conditions, insert the word FOR and follow it with conditions to customize (i.e., filter) your report results, such as FOR PEN=4.

:::hint{type="warning"}
**IMPORTANT:&#x20;**&#x4C;IST (SHOW) commands require that the FOR keyword is typed before the BY or DOWNBY keyword. SUM commands require that the FOR keyword is typed after the BY or DOWNBY keyword.
:::

:::ExpandableHeading
### Show me some examples!

In the command example above, the condition includes the word FOR, followed by 3 different conditions to customize the report results — one for lactation number (LACT), one for days carried calf (DCC), and one for dry date (DDAT):

- `LIST \Z ID PEN LACT DIM DCC MILK FOR LACT>0 DCC>220 DDAT=0 BY PEN`
  Adding these conditions to your command will narrow your report down to the following results:
  - LACT>0 tells the report to include only animals with a lactation number of 1 or higher.
  - DCC>220 tells the report to include only animals who have carried their calf for more than 220 days.
  - DDAT=0 tells the report to include only animals that are currently milking (i.e., a fresh date exists, but DDAT=0 means no dry date exists).

A SUM command requires that the FOR condition is typed after the sort word DOWNBY:

- `SUM DOWNBY AGE FOR LACT=0`
  This tells the report to only include heifers, or animals that have not yet had a lactation cycle (LACT=0).
:::

When entering a condition, you can choose from the following operators:

| Operator | Definition for numeric and date values | Definition for string values |
| -------- | -------------------------------------- | ---------------------------- |
| =        | equal to                               | equal to                     |
| \<>      | not equal to                           | not equal to                 |
| >        | greater than                           | contains                     |
| >=       | greater than or equal to               | -                            |
| \<       | less than                              | does not contain             |
| \<=      | less than or equal to                  | -                            |
::::

::::ExpandableHeading{indent="2"}
## Sort: (Optional) Use sort words (BY and DOWNBY) and criteria in LIST and SUM commands to sort how your results are listed. Click here to learn more!

The sort options are simple. You can use either BY or DOWNBY:

- Use BY to sort lowest to highest.
- Use DOWNBY to sort highest to lowest.

:::hint{type="warning"}
**IMPORTANT:&#x20;**&#x4C;IST (SHOW) commands require that the FOR keyword is typed before the BY or DOWNBY keyword. SUM commands require that the FOR keyword is typed after the BY or DOWNBY keyword.
:::

:::ExpandableHeading
### Show me some examples!

The LIST command example above includes the sort word BY, followed by the column that will be sorted (PEN):

- `LIST \Z ID PEN LACT DIM DCC MILK FOR LACT>0 DCC>220 DDAT=0 BY PEN`
  This tells the report to sort the list by the PEN column. It puts the lowest pen number at the top and the highest pen number at the bottom. If you used DOWNBYPEN instead, it would sort the highest pen number at the top and the lowest pen number at the bottom.

A SUM command requires that the sort word DOWNBY is typed before the FOR condition:

- `SUM DOWNBY AGE FOR LACT=0`
  This tells the report to sort the list by the AGE column. It puts the highest age group at the top and the lowest age at the bottom. If you used BYAGE instead, it would sort the youngest group at the top and the oldest group at the bottom.
:::
::::

Expand the sections below to learn more:

:::ExpandableHeading
## Errors

If you enter an incorrect command, or one that doesn't follow the expected syntax, the Platform provides a descriptive error message and highlights the area of the command that is in error.

![](https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/VFykJksnCTY1OD4x2kneL_cmdline-error.png)
:::

:::ExpandableHeading
## Results

The Reports/Worklist&#x73;**&#x20;Results** page displays the results of your executed command.

![](https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/72HxNcZi2kWZMg7aEsiJv_report-results-command.png)

You can choose to Print or Export your results. See [../DairyComp/ReportsWorklists/ReportWorklistResults.htm](docId\:ccHmaj9YUZYEy8iPIgX5C)[Reports/Worklists Results](docId\:ccHmaj9YUZYEy8iPIgX5C) to learn more!
:::

:::ExpandableHeading
## History

PULSE saves recent commands run to the **Report History** page.

![](https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/Kfuld5maP_IHBAA5-H0BL_command-manage-saved.png)

See [Report History](docId\:t0dqcTNaWxU4HXbqZKdgM) to learn more!
:::

:::ExpandableHeading
## Save Commands

Click the **Edit** button on the Dairy Reports/Worklists page to add your command to your Dairy Reports.

![](https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/M3AS6yUdNFk0P7KphH85g_command-results-save2.png)

See [Dairy Reports/Worklists](docId:53qA-Cejz2iSzC1x8fZ21) to learn more!
:::

:::::ExpandableHeading
## Cautions for DairyComp 305 Users

The following cautions are especially important if you are familiar with DairyComp's command line feature: 

:::ExpandableHeading
### Additional item numbers

PULSE uses existing DairyComp 305 standard item numbers, as well as an expanded set of pre-defined standard items (2000+). See [DairyComp Standard Items](docId\:GA6mAA2QP4OxyTuf-h-DY) for more information.
:::

:::ExpandableHeading
### Commands

PULSE command line supportsCOUNT, ENTER, LIST, and SUM.
:::

:::ExpandableHeading
### Date format

PULSE interprets the order of month and day based on your [User Profile](docId\:noN0kV5hwhmfaYXl0TlkE)**Date format** setting.

::Image[]{src="https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/M7BdBi2mb7UwXXFtUQ-ND_user-profile-date-format.png" size="60" isUploading="false" initialPath="../../../Resources/Images/Platform/users-roles/user-profile-date-format.png" githubPath="Content/Resources/Images/Platform/users-roles/user-profile-date-format.png" position="flex-start" showCaption="false"}

The year may be two or four digits, and month and day may be one or two digits. Use a forward slash (/) or period (.) to separate year, month, and day. Dates may be specified in any of the following formats: 

| - yyyy/mm/dd or yyyy.mm.dd |
| -------------------------- |

- mm/dd/yy or mm.dd.yy
- mm/dd/yyyy or mm.dd.yyyy
- dd/mm/yy or dd.mm.yy
- mm/dd or dd/mm (assumes the current year) | \* yyyy/m/d or yyyy.m.d
- m/d/yy or m.d.yy
- m/d/yyyy or m.d.yyyy
- d/m/yy or d.m.yy
- m/d or d/m (assumes the current year) |

For instance, September 17, 2019, can be formatted as:

- 2019/09/17, 9.17.19, 9/17/19, or 9/17 if your date format is set to Month/Day/Year
- 2019/17/09, 17.9.19, 17/9/19, or 17/9 if your date format is set to Day/Month/Year
:::

:::ExpandableHeading
### Double quotes

Double quotes (") are required to identify a string in the command line. For instance, CODA="TEST".
:::

::::ExpandableHeading
### Sort and condition keyword order

Sort and condition keywords (BY, DOWNBY, FOR) must follow a prescribed order in LIST (SHOW) and SUM commands.

:::hint{type="warning"}
**IMPORTANT:&#x20;**&#x4C;IST (SHOW) commands require that the FOR keyword is typed before the BY or DOWNBY keyword. SUM commands require that the FOR keyword is typed after the BY or DOWNBY keyword.
:::
::::

:::ExpandableHeading
### Switches

In PULSE command line, any switches must immediately follow the command word. The following switches are currently supported in the specified command(s): 

| Switch | Definition                                                                                                                                                                         | Command(s)          | Example                                                                                                                                              |
| ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| \B     | Includes results for both live and dead animals. Without the switch, command results include live animals only.                                                                    | COUNTLIST (SHOW)SUM | LIST \B ID LACT DIM RPRO ARDAT FOR FDAT>-7 BY  LACTCapture live and dead animal data for recently freshened animals by lactation.                    |
| \D     | Limits results to dead cows only.                                                                                                                                                  | COUNTLIST (SHOW)SUM | COUNT \D FOR LACT=1 ARDAT>-90Capture total number of dead animals in their first lactation in the last 90 days.                                      |
| \S     | Sets the standard deviation calculation to use sample values. Without the switch, PULSE calculates population standard deviation.                                                  | SUM                 | SUM \S MILK PCTF PCTS LGSCC BY lact FOR LACT>0Analyze sample standard deviation data for milk composition and quality by lactation.                  |
| \Z     | Includes zero values in averages and standard deviation calculations. Without the switch, average, standard deviation, mode, and median calculations include non-zero values only. | SUM                 | SUM \Z TKET BY LCTGP FOR FDAT>-365Analyze the number of times ketosis was diagnosed by lactation group for all animals that calved in the last year. |
:::
:::::

[\< Return to Features Overview](docId\:Aa_t5nhaXPa7beN0It8lz)
