Kbase P13876: Executing SET-BUFFER statement generates error 7319
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  24/08/2005 |
|
Status: Verified
SYMPTOM(s):
Executing SET-BUFFER statement generates error 7319
ADD/SET-BUFFERS argument 1 was invalid or not found (7319)
CAUSE:
The parameter to the SET-BUFFERS method call is a character variable which contained the name of a database table. When a character variable is passed to this method the runtime engine attempts to find an existing buffer for the table. If no buffer exists then the error is generated. Please note that the runtime engine looks for an existing buffer and not a table in a connected database which matches the same name.
FIX:
This can be fixed different ways:
Use SET-BUFFERS(BUFFER TableName:HANDLE) to define and set a buffer for the table on the fly
Insert a DEFINE BUFFER TableName FOR TableName statement before the call to SET-BUFFERS
Use the FIND statement to find a record for the table before the call to SET-BUFFERS
Create a new dynamic buffer using the CREATE BUFFER statement before the call to SET-BUFFERS