Command Line
5 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 dc unlimited subscribers mydc subscribers will not see it in pulse click here docid 5i7xv63wgmrxmsotyjaaa 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 3vzpmoxqs8 kbp dw67nl , sum docid\ nmji3go ewnd7c10thjsp , count, docid\ bcakekx6s3uakqfbxhdzi and enter docid\ iwfme1ccm5q8msfqpkrix commands you can find this feature on the main menu bar docid\ ezfejzdkbcfov b69aupr , or by selecting f9 from your keyboard a typical command consists of the 5 parts defined below \<font color="#67854e">command word\</font> 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 3vzpmoxqs8 kbp dw67nl 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\ nmji3go ewnd7c10thjsp for helpful sample commands! count calculates the total number of animals that match certain items and conditions see count command docid\ bcakekx6s3uakqfbxhdzi 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\ iwfme1ccm5q8msfqpkrix for more information \<font color="#67854e">switches \</font> (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 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, , 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 \<font color="#67854e">items\</font> 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, 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 tip to see all available items for your dairy, go to your item definitions docid 032qofxgwpqguywchwyb7 \<font color="#67854e">conditions\</font> (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 fresh 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 \<font color="#67854e">sort\</font> (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 pen number at the top and the highest pen number at the bottom if you used downby pen 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 by age 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 platform provides a descriptive error message and highlights the area of the command that is in error results the reports/worklists results page displays the results of your executed command you can choose to print or export your results see reports/worklists results docid\ aglfbf bfmbcntpjdr w3 to learn more! history pulse saves recent commands run to the report history page see report history docid\ akkqgvji5dq2123k3g0qc to learn more! save commands click the edit button on the dairy reports/worklists page to add your command to your dairy reports see dairy reports/worklists docid\ unglsr18amy6xyamsfdnh to learn more! cautions for dairycomp users the following cautions are especially important if you are familiar with dairycomp's command line feature 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\ hcc6a5ztho8ukczhes9nn for more information commands pulse command line supports count , enter , list , and sum date format pulse interprets the order of month and day based on your user profile docid\ adcj5yzybengyc6xqqec3 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, 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 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 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