NAME capr - Print field values of record SYNOPSIS capr [-d dbd_file] ( [-f record_type] | [-r] | [record_name] ) [interest] DESCRIPTION capr will display fields and their values for a given record name. The fields displayed depend upon the interest level specified. If no interest level is specified the default is level 0. Output format is similar to that produced by dbpr. Interest levels have the same effect as in dbpr. Note that it is not possible to access all the fields available to dbpr and in some cases the level of detail available is not as great as in dbpr. In order to determine which fields are associated with a particular record type capr uses a dbd file. The dbd file used can be the default, specified by an environment variable or specified on the command line. Note the current default dbd file is the APS linac.dbd file. The use of options on the command lines allow the user to alternatively display the record types defined in the current dbd file, display the fields and some of their properties for the specified record as defined in the current dbd file or to print the fields of the specified record. OPTIONS -d dbd_file Allows the user to specify a dbd file. Overrides dbd files specified by default or by the environment variable CAPR_DBD_FILE -f record_type Prints the fields defined in the dbd file for record_type. For each field shows the interest level, data type and base in which it is displayed. -r Lists the record types defined in the current dbd file EXAMPLES To display the basic fields of a record. capr my_record To display a record at interest level 2, specifying "my.dbd" as the dbd file. capr -d my.dbd my_record 2 To list the fields defined for record type "ai" capr -f ai To list the record types defined in my.dbd capr -d my.dbd -r ENVIRONMENT VARIABLES CAPR_DBD_FILE Set this to your preferred dbd file and it will override the default. AUTHOR John Maclean. jfm@aps.anl.gov