REC=: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
REC=<numeric expression>
The optional "REC=num-expr" clause is used to position the pointer to a specified record number before reading. After the numeric expression (usually a simple numeric variable or constant) is evaluated and rounded to an integer, the system reads that record number. If "REC = num-expr" is not specified, the system sequentially reads the next active record.
The optional "REC=num-expr" clause is used to position the pointer to a specified record number before reading. After the numeric expression (usually a simple numeric variable or constant) is evaluated and rounded to an integer, the system reads that record number. If "REC = num-expr" is not specified, the system sequentially reads the next active record.


Used with internal files opened for RELATIVE or KEYED processing or with external files opened for RELATIVE access:
Used with internal files opened for RELATIVE or KEYED processing or with external files opened for RELATIVE access. Relevant statements are:
*[[Read file|Read]]
*[[Read file|Read]]
*[[Write]]
*[[Write]]
*[[Delete Statement|Delete]]


<noinclude>
<noinclude>
[[Category:All Parameters]]
[[Category:All Parameters]]
</noinclude>
</noinclude>

Latest revision as of 15:49, 8 May 2014

REC=<numeric expression>

The optional "REC=num-expr" clause is used to position the pointer to a specified record number before reading. After the numeric expression (usually a simple numeric variable or constant) is evaluated and rounded to an integer, the system reads that record number. If "REC = num-expr" is not specified, the system sequentially reads the next active record.

Used with internal files opened for RELATIVE or KEYED processing or with external files opened for RELATIVE access. Relevant statements are: