Command Line
7 min
required setup important this feature is not available in all markets and regions can't find this feature? make sure it's included in your subscription! this feature/option is available only for will not see it in click here docid\ jwusxgpk0q1fvyl3qyb1n to learn more about the different versions of the command line brings the power of into , allowing you to generate many of the same reports you're able to view in 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 a typical command consists of the 5 parts defined below 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 list or show generates a listing of animals with certain items and conditions in command line, list and show are interchangeable commands in , 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 then generates a report listing all the updated item values see enter command docid\ qpp80 z uzqsnf8ydrzen for more information switches (optional) use one or more switches to affect or limit which data is included in your report click here to learn more! in 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 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 calculation to use sample values without the switch, 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, , and calculations include non zero values only sum sum \z tket by lctgp for fdat> 365analyze the number of times was diagnosed by lactation group for all animals that calved in the last year 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 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, 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 tip to see all available items for your , go to your item definitions docid\ hjq1h v5u1aattdylsmfg 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 important list (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 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 date exists, but =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 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 important list (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 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 number at the top and the highest number at the bottom if you used downbypen instead, it would sort the highest number at the top and the lowest 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 errors if you enter an incorrect command, or one that doesn't follow the expected syntax, the provides a descriptive error message and highlights the area of the command that is in error results the results page displays the results of your executed command you can choose to print or export your results see /dairycomp/reportsworklists/reportworklistresults htm docid\ cchmaj9yuzyey8ipigx5creports/worklists results docid\ cchmaj9yuzyey8ipigx5c to learn more! history saves recent commands run to the report history page see report history docid\ t0dqctnawxu4hxbqzkdgm to learn more! save commands the edit button on the page to add your command to your reports see dairy reports/worklists docid 53qa cejz2iszc1x8fz21 to learn more! cautions for dairycomp 305 users the following cautions are especially important if you are familiar with 's command line feature additional item numbers uses existing 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 commands command line supportscount, enter, list, and sum date format interprets the order of month and day based on your user profile docid\ non0kv5hwhmfayxl0tlke date format setting 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, 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 double quotes double quotes (") are required to identify a string in the command line for instance, coda="test" sort and condition keyword order sort and condition keywords (by, downby, for) must follow a prescribed order in list (show) and sum commands important list (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 switches in 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 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, 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