markAsEnd <string> [occurrence=#][offset=#][regex=true|false]
| Name | Description |
|---|---|
| string | This argument is a string that is being searched for. The row that contains this string will become line number -1. |
| Name | Description |
|---|---|
| occurrence | This option lets the user specify the number of times to search for the specified string (default is 1). A negative value will cause it to search forward from the previous markeAsBeginning statement or from the beginning of the file if no markAsBeginning statement has been specified. Note: doesn't count multiple occurrences on the same line; uses the first |
| offset | This option allows users to specify where the desired search line is in reference to the search criteria (default is 0). This number may be negative. |
| regex | New as of build 159. If true, the string should be treated as a regular expression rather than a simple string search. Default is false. |
The file could have the following structure:
... total time: 5.02 total friction: 0.95 End Totals ...The values for total time and total friction can be found using the following code:
markAsEnd "End Totals" # name type row field variable: time double -3 2 variable: friction double -2 2
The file wrapper program will locate the tagged line and then use the row and field information to locate values.
See also Analysis Server | FileWrapper | FileWrapper Statements