ALTER3: Command Abbreviations
4 min
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 \<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 \<font color="#882255">5\</font> use the tabs at the bottom of the window to quickly navigate to different dairycomp pages \<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 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 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 tip choose an abbreviation that is short and meaningful to help you remember the command's purpose important an 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 rpro pen for lact=1 you can type the command directly, or click the red arrow button 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 \<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 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 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 note changes apply to everyone who uses the same cowfile update shared abbreviations carefully to avoid disrupting other users' workflows 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 tip if you may need the abbreviation again, consider exporting your command list before deleting deleted abbreviations are not automatically backed up 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 note printing 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 once you have created the export file, its details display in the export grid window to open the file, select view exported file 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 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 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 \<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 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 \<font color="#f97316">important\</font> it's strongly recommended that you work with vas support https //vas com/contact support/ when saving or reading commands from a file 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 note if 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 \<font color="#f97316">important \</font> when editing the file, keep abbreviations aligned in their original columns misalignment can prevent the file from importing correctly 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 tip before 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