| Data Extract | |
![]() | Benford's Law Downloads Site Map |
| Home Page | Population | Sampling | Fraud | Other | Tutorial | Macros |
| Data Extract |
|
Command Overview Note: this feature is only available in version 1.3 and above The extract command is used to select data which meets a specified criteria based upon data in the input source. The command supports three sources of data for testing:
The extract command can be used to "drill down" and focus on just on certain data, e.g. errors, based upon a variety of criteria such as:
The key to the extract command is the "condition" statement, which defines the criteria which must be met in order for the input data to be extracted to the output result. A condition statement is specified as cond="<condition statement or statements>". A condition statement is one which evaluates to true or false, depending upon the input data. All variables are specified with a leading "$" to indicate that they are a variable (and not a text literal). The variable names correspond with the top row of the data in a worksheet or with the first row of data contained in a file in tab separated value format. Examples of conditions include:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Syntax The command is entered on the command line as the command name ("extract", or just "ex") followed by one or more command parameters. Each command parameter consists of an argument name, immediately followed by an equal sign ("=") and then immediately followed by a value. The value may be enclosed with quotation marks, and must be enclosed by quotation marks if the value consists of any embedded spaces. An example of a command parameter to specify that the file name to be processed is test.txt is entered as "file=test.txt" (without the quotations). Each argument on the command line must consist of only valid parameter names. If a required parameter name is missing, then the command line will be colored yellow, an error message will be displayed on the Excel status bar and an audible tone will be sounded. The following is a listing of all parameter values for the extract command:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Some examples The command to be perform an extraction the file named \test\invoice\tran.txt , storing the results on the worksheet named "Extract Data " is as follows: extract ds=file file=\test\invoice\tran.txt recap="Extract Data" cond="$Amount > 100 and $DueDate < "6/30/2007" " The same command for a data range on a sheet would be: extract ds=rng sheet=t_CMAData ulc=a1 recap=Extract Data" cond="$Amount > 100 and $DueDate < "6/30/2007" " The same command for a selected data range on a sheet would be: extract ds=rng recap=Extract Data" cond="$Amount > 100 and $DueDate < "6/30/2007" " | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Described below are some of the elements of a condition, and their description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Complete Auditor resources |
![]() |
| Links | Privacy Policy | FAQ | Downloads | Trademarks | |
| Web Page last updated on 09-21-2007 © EZ-R Stats, LLC 2005-2007 |