Tips for Using the Command Line
5 min
expand the topics below to learn more how does the command parser work? any information entered into dairycomp, whether selected from a menu or entered in the command line, is passed through a "command parser," which interprets what you entered and executes the necessary parts of the program to perform that function the parser takes the commands you enter, makes any substitutions of commands or expands partial command abbreviations you may have created through alter, and checks each part of the command for proper syntax it then uses the major command word list , show , receive , etc to execute that command upper/lower case when entering commands, the parser is not case sensitive this means that you can type commands in uppercase, lowercase, or combinations the following commands are all interpreted the same way, and you are free to use whatever case you feel comfortable using show id lact fdat show id lact fdat show id lact fdat certain "control characters" or "unprintable characters" can be useful in modifying program performance the "escape" or \[esc] key is used to abort entries or commands and return to command mode all commands and inputs to the program are expected to be ended by hitting the enter or return key this includes entering commands, cow id numbers, and other prompted responses menus are an exception to this, they can be optionally defined to accept single character responses without pressing enter also, control characters such as escape to abort a listing do not need to be ended with enter correct command errors if you make a mistake, you can use the backspace and arrow keys to correct your mistake, or press \[esc] to clear the command if you enter a command that the parser does not recognize, you will get an error message if you spelled an item name wrong, the parser will attempt to help out by bringing up the item list (and a "best guess" of what you meant), from which you can select the proper item retrieve previous commands you can retrieve recent commands by using the following keyboard shortcuts press the up or down arrow keys to retrieve any of the previous 32 commands press f4 to display all recent commands in a pick list once retrieved, you can edit the command by adding new items, switches, or use the insert key to insert new text into the command view a list of command switches use the switch manager to see all the available switches for all commands click command? at the left side of the command line or navigate to the help menu to open the switch manager, then browse the list of commands and switches for a comprehensive list of commands and switches you can download, see command line quick reference sheets docid\ ixz je7qebldjwchguofj try command line assist if you are new to using the command line, or just want assistance with it, try assist docid\ hvprxarwltdqtfjrxajai this enhancement to the command line helps you find the command components you need (such as items and events) without having to memorize exact names download pdf quick‑reference guides for the dairycomp command line dairycomp command syntax quick reference guide https //archbee doc uploads s3 us east 1 amazonaws com/3h8psjcguxei4hgccypta/arqbet7jhkzotikii83h6 20260408 204620 pdf?x amz algorithm=aws4 hmac sha256\&x amz content sha256=unsigned payload\&x amz credential=akiayqnqcixnp4etosxw%2f20260410%2fus east 1%2fs3%2faws4 request\&x amz date=20260410t182612z\&x amz expires=86400\&x amz signature=591791925e8be5257fe006b0e148e7b9d9e3a9b83cc581ba13782b4266c40956\&x amz signedheaders=host\&response content disposition=attachment%3b%20filename%3d%22dc305 commandlinequickref pdf%22\&x amz checksum mode=enabled\&x id=getobject dairycomp command verbs and switches https //archbee doc uploads s3 us east 1 amazonaws com/3h8psjcguxei4hgccypta/z890vgj 2dzg62vsun wg 20260408 204647 pdf?x amz algorithm=aws4 hmac sha256\&x amz content sha256=unsigned payload\&x amz credential=akiayqnqcixnp4etosxw%2f20260410%2fus east 1%2fs3%2faws4 request\&x amz date=20260410t182725z\&x amz expires=86400\&x amz signature=b73fc188485584a6e6787bf464f6f62c7f73ffcdce631d0b2f10c9214cdc7326\&x amz signedheaders=host\&response content disposition=attachment%3b%20filename%3d%22dc305 verbsandswitches pdf%22\&x amz checksum mode=enabled\&x id=getobject dairycomp vocabulary https //archbee doc uploads s3 us east 1 amazonaws com/3h8psjcguxei4hgccypta/mmpgaiirf6lpqizxwbwlc 20260408 204816 pdf?x amz algorithm=aws4 hmac sha256\&x amz content sha256=unsigned payload\&x amz credential=akiayqnqcixnp4etosxw%2f20260410%2fus east 1%2fs3%2faws4 request\&x amz date=20260410t182855z\&x amz expires=86400\&x amz signature=d02f883ab472a8bb50abf4c6715eb059626cc5701f74effb397947f852c228a7\&x amz signedheaders=host\&response content disposition=attachment%3b%20filename%3d%22dc305%20vocabulary%20and%20command%20summary pdf%22\&x amz checksum mode=enabled\&x id=getobject how do i fix a command that isn't working? if a command is not working, you can start by breaking it apart ask yourself these questions and see the illustration below to make sure your command has all the necessary parts first, does it start with a command word like show , list , or sum ? next, ask \<font color="#4283c7">what\</font> you want to see on your report ( id pen dim rpro ) next, ask \<font color="#b91c1c">who\</font> you want to see on your report these are the items you typically use in a for statement remember that you can use multiple constraints within your for statement last, ask \<font color="#67854e">how\</font> you want to view your list you can use a by or downby statement to sort your report \<font color="#67854e">examples \</font> make a list of all animals that are less than 30 days in milk show `` \<font color="#67854e">id pen dim\</font> `` for`` \<font color="#b91c1c">dim\<30\</font> make a list of all animals more than 30 days in milk in pen 4, sorted by reproductive status show \<font color="#67854e">id pen dim rpro\</font> for \<font color="#b91c1c">dim\>30 pen=4\</font> by \<font color="#67854e">rpro\</font> \<font color="#67854e">common errors if a command is broken \</font> \<font color="#67854e">"unknown item” error \</font> try selecting your command items from the picklist instead of typing them manually simply press f1 on your keyboard for a picklist of available items you can use \<font color="#67854e">your list is blank or doesn't contain any animals\</font> check your “for” statement to make sure you pull some animal‑specific data into your list \<font color="#67854e">need more help?\</font> see command line docid\ u nbrveqbf6nzsp1bc9e0 to learn more about the structure of a command, easily break commands apart, and build new commands! related topics troubleshoot the command line docid\ ssof7vqpmqn8mhbhnwmhq