---
title: ALTER3: Command Abbreviations
slug: help/en-us/dairycomp/alter3-command-abbreviations
docTags: 
createdAt: 2026-01-26T11:43:19.206Z
---

The ALTER\3 command in DairyComp lets you manage command abbreviations. Command abbreviations are shortcuts that represent longer, frequently used command strings. Command abbreviations save time, reduce errors, and help maintain consistency when running reports and performing routine data checks.

To open the Command Abbreviations window, enter **ALTER\3** or type **ALTER** and choose **\[3] Commands** from the menu

::::VerticalSplit{layout="right"}
:::VerticalSplitItem
![](https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/TDmVL87BVDT0t6DXSqJOt_alter-commands.png)
:::

:::VerticalSplitItem
<font color="#882255">~~**1**~~</font> Pull-down menus

<font color="#882255">~~**2**~~</font> Interactive icons

<font color="#882255">~~**3**~~</font> Command line entry box

<font color="#882255">~~**4**~~</font> The left side of the window contains an Outlook style toolbar (simply called the "Outlook Bar") that supplies quick access to the program's major functions.&#x20;

<font color="#882255">~~**5**~~</font> Use the tabs at the bottom of the window to quickly navigate to different DairyComp pages.&#x20;

<font color="#882255">~~**6**~~</font> A status bar with the cowfile information and current date can be found at the bottom of the window.
:::
::::

Expand the sections below to learn more:

::::ExpandableHeading
## Add a Command

Use the **Add** option to create a new command abbreviation. When selected, a new window opens where you can enter the abbreviation and the full command it represents.

::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/_ae43e0Hplz97JqvIGoG1_alter3-addcommand.png" size="32" width="1273" height="302" darkWidth="1273" darkHeight="302" position="flex-start" showCaption="false"}

Command abbreviations are stored in the DairyComp cowfile and are available to all users who access that file.

A command abbreviation has three parts:

- <font color="#67854E">**Abbreviation\:**</font> The one word name for the command abbreviation. Limited to 2-7 characters.
  Example: **BRED1** or **REPORT2**.

  :::hint{type="success"}
  **TIP:&#x20;**&#x43;hoose an abbreviation that is short and meaningful to help you remember the command's purpose.
  :::

  :::hint{type="warning"}
  **IMPORTANT:&#x20;**&#x41;n abbreviation cannot use the same name as an existing item or event.
  :::
- <font color="#67854E">**Content**</font>: The full command that the abbreviation runs.
  Example: LIST ID RPROPEN FOR LACT =1
  You can type the command directly, or click the red arrow button :inlineImage[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/QuspSCwZXQYNl4XuGVMN5_alter3-addicon.png" alt caption size="10" width="21" height="20"} to open a list of recently used commands. Selecting one of these commands inserts it into the **Content** field, where you can edit or expand it to create your desired abbreviation. See [Command Line](docId\:u_NbRVeQbF6NzSP1bc9E0) for more information about using command line syntax. &#x20;
- <font color="#67854E">**Title**</font>: A short description, used mainly in printed reports. Adding a title to a command allows you to search for it within the **Reports** section of [Assist](docId\:HVprxaRwLtDqTfJrxaJAI).
  When reports are printed, DairyComp displays the title instead of the abbreviation.

The window also includes a **Test** button. See [Test Commands](docId\:bq-RsQLRiniXrUKCZz8RV) to learn more about this function. &#x20;

:::ExpandableHeading
### Limits and Version Notes

- A version 8 cowfile can store up to 2,048 total command abbreviations, with a maximum command length of 127 characters.
- A version 10 cowfile can also store up to 2,048 total command abbreviations, but command length can be up to 1,024 characters.
:::
::::

::::ExpandableHeading
## Change a Command

Use the **Change** option to edit an existing command abbreviation. This is helpful when the underlying command changes, a title needs updating, or an abbreviation no longer matches its purpose.

Select the abbreviation you want to modify, then choose **Change** from the **Commands** menu (or press **F2**). You can edit the abbreviation, the full command, or the title as needed. You can also use the **Test** button to check the syntax of the command to confirm it is valid before saving your changes.

:::hint{type="info"}
**NOTE:&#x20;**&#x43;hanges apply to everyone who uses the same cowfile. Update shared abbreviations carefully to avoid disrupting other users' workflows.
:::
::::

::::ExpandableHeading
## Delete a Command

Use the **Delete** option to remove a command abbreviation that is no longer needed. DairyComp prompts you to confirm the action, and selecting **Yes** deletes the command abbreviation immediately.

:::hint{type="success"}
**TIP:&#x20;**&#x49;f you may need the abbreviation again, consider exporting your command list before deleting. Deleted abbreviations are not automatically backed up.
:::
::::

::::ExpandableHeading
## Print or Export Commands

The **Print** and **Export** options are available from the **Tools** drop-down list at the bottom-right of the Command Abbreviations window. These features let you print or export your list of command abbreviations for backup, review, or sharing.

Select **Print** to print all command abbreviations. This produces a list of all abbreviations, their contents, and titles for reference or review.

:::hint{type="info"}
**NOTE:&#x20;**&#x50;rinting is available when the DairyComp print option is enabled and a printer is properly configured.
:::

Select **Export** to open the Export Grid window, where you can choose what to include in the export and select the file format.

::Image[]{src="https://api.archbee.com/api/optimize/3h8pSJcGUXEi4HGCCYPTA/Hkv4dsPRreiSlj-FO9cOF_alter3-exportcommands.png" size="32" width="1337" height="490" darkWidth="1337" darkHeight="490" position="flex-start" showCaption="false"}

Once you have created the export file, its details display in the Export Grid window. To open the file, select **View Exported File**.

:::ExpandableHeading
**Click here to learn more about export options!**

The **Export options** area of the window lets you specify how data is exported.

- <font color="#67854E">**Include style and formatting\:**</font> Keeps grid formatting in the exported file.
- <font color="#67854E">**Expand groups for export\:**</font> Expands grouped data so all records are included.
- <font color="#67854E">**Export selected data only**</font>: Exports only the abbreviations you’ve highlighted; leave unchecked to export all.
- <font color="#67854E">**Export data types\:**</font> Includes field type information in the export.
- <font color="#67854E">**Export with grid lines\:**</font> Adds grid lines to make data easier to read.

The **Export to** area of the window lets you choose the file format. You can choose from the following formats:

- Text (plain text)
- CSV (comma-separated values)
- XLS (Excel 1997–2003)
- XLSX (Excel 2004 and later)
- HTML, XML, or PDF
:::

After choosing the format, DairyComp opens a standard **Save As** dialog where you can enter a file name and choose where to save the exported file.
::::

:::ExpandableHeading
## Find Command Abbreviations

Use the **Find** option to quickly locate a specific command abbreviation. A search bar appears where you can type all or part of an abbreviation. This feature is helpful when you have a long list of abbreviations and need to view or edit a particular one.

DairyComp automatically highlights matching commands as you type. For example, typing "BRED" highlights any abbreviations that begin with those letters.

If multiple abbreviations match, continue typing until the one you want is selected.
:::

::::ExpandableHeading{customAnchorSlug="Test"}
## Test Commands

Use the **Test** option to verify that your command abbreviations use valid syntax. This process checks the structure of each command (not whether it produces the correct data output).

When you select **Test**, DairyComp reviews all abbreviations and reports any syntax errors it finds. A list of errors and their causes is displayed for command abbreviations that fail. Examples of failure points include unknown items in the syntax of commands and having DairyComp Report menu items that don't have command abbreviations associated with them.

:::hint{type="warning"}
<font color="#F97316">**IMPORTANT\:**</font> Because the test does not verify whether the command produces the correct data or expected results, you should manually review any commands that return unusual or unexpected outputs in actual reports.
:::
::::

:::::ExpandableHeading
## Save and Read Commands from a File

The **Save to File** and **Read From File** options are located under the **Advanced** section in the Command Abbreviations window. These features let you back up your list of command abbreviations or import an existing list. They are especially useful when upgrading DairyComp, moving data between herd files, or sharing command sets with other users.

:::hint{type="warning"}
<font color="#F97316">**IMPORTANT**</font>**:&#x20;**&#x49;t's strongly recommended that you work with [VAS Support](https://vas.com/contact-support/) when saving or reading commands from a file.
:::

::::ExpandableHeading{customAnchorSlug="Save"}
### Save to File

Use **Save to File** to export all command abbreviations to a text file. You'll be prompted to specify a file name and location for the file.

:::hint{type="info"}
**NOTE:&#x20;**&#x49;f you don’t specify a file name, DairyComp saves the file as `COMMANDS.LST` in the program’s subdirectory.
:::

The exported file is an ASCII file that you can open in a plain text editor (such as Notepad). You can add, delete, sort, or modify abbreviations directly in this file if necessary.

:::hint{type="warning"}
<font color="#F97316">**IMPORTANT\:** </font>When editing the file, keep abbreviations aligned in their original columns. Misalignment can prevent the file from importing correctly.
:::
::::

::::ExpandableHeading
### Read from File

Use **Read From File** to import a list of saved command abbreviations. DairyComp displays a preview of the abbreviations before importing.

If duplicates exist, you’ll be prompted to choose whether to replace or ignore the existing entries.

:::hint{type="success"}
**TIP:&#x20;**&#x42;efore importing, consider using [Save to File](docId\:bq-RsQLRiniXrUKCZz8RV) to create a backup of your current command list. This ensures you can restore your original abbreviations if needed.
:::
::::
:::::

