karnatikalyan
New User
Joined: 08 Feb 2006 Posts: 5
|
|
|
|
Hi,
The LOCATE statement can be used only with an OUTPUT SEQUENTIAL
BUFFERED file for locate mode processing. It allocates storage within an output buffer for a based variable and sets a pointer to the location of the next record.
Just check this as as example.
declare your record structure with storage based
DECLARE P POINTER;
DECLARE 1 INREC BASED(P),
2 DATA CHAR(80);
Decalre the file with OUTPUT SEQUENTIAL BUFFERED
P->DATA = 'ABCDEFGH';
LOCATE DATA FILE(FILENAME);
P->DATA = 'XYZDSDSD';
LOCATE DATA FILE(FILENAME);
Please check the above code.
Any suggestions are welcome.
Regards,
Karnati. |
|