adxwrb is used to indicate the number of records to buffer, upon writing in the database via instruction Writeb

Class, type and dimension

Integer [S]adxwrb

Examples

# see the Writeb instruction example

Description

Variable adxwrb includes the number of records to buffer, upon writing in the database via the Writeb instruction. 

When this value is lower or equal to 1, the Writeb instruction does not carry out any buffer on the record and does not behave like the Write instruction.

When this value is greater than 1, the Writeb instruction carries out a buffer on the record to write. Writing in the database of such buffered records is carried out when, further to the Writeb instruction, the buffer is full. The number of buffered records reaches the number included in the adxwrb variable.

Value 10 is recommended for a good buffer writing management.

NB:

The modification of variable adxwrb leads to an error if the records have remained in the writing buffer. Therefore, it is imperative to carry out a Flush or Rollback to empty the buffer, before changing its specification.

Associated keywords

WRITEB - FLUSH - FOR - ADXFTL - FSTAT