clearMarks Statement

Added: build 101

Purpose

Restores the row numbering to be the same as the absolute line number of the file (as opposed to a line number relative to a mark set with markAsBeginning or markAsEnd).

Applicability

The markAsBeginning statement can be used within RowFieldInputFile and RowFieldOutputFile sections.

Syntax

clearMarks

Example

Say that a file contains a single column of data that is separated by tags. The user wishes to specify a variable below a tag, then specify a variable above the tag.
Young's Modulus (ksi) 
29900 
10000 
11700 
42000 
17500 
Stress Values (ksi) 
100 
200 
300 
400 
500 
600 

Inside a RowFieldInputFile section, the user would specify the stress tag as the beginning of the file, defines a variable to hold the value two lines below the tag, and then defines a value two lines above the tag:

markAsBeginning "Stress" 
#          name     type    row  field 
variable:  stress2  double  3    1 
clearMarks 
#          name     type    row  field 
variable:  mod4     double  5    1 

The user sets the line containing "Stress" as row one. Therefore, when the user defined a variable for the value two rows below this row, he specifies its row location as 3. In order to specify a row above the marked row one, the user clears the markAsBeginning statement using a clearMarks statement. The first row of the file once again becomes row one.

See also Analysis Server | FileWrapper | FileWrapper Statements