isCOBOL Evolve : Appendices : Library Routines : S$IO : S-REWRITE-FUNCTION
S-REWRITE-FUNCTION
This function rewrites a record in the sequential file. It does not change the current file position.
Syntax:
 SET S-REWRITE-FUNCTION TO TRUE
 
 CALL "S$IO" USING SIO-FUNCTION 
                   f
                   recBuffer
                   lenght
            GIVING returnCode
Parameters:
f
the file handle returned by R-OPEN-FUNCTION.
recBuffer
an alphanumeric data-item that contains the new record data.
length
number of bytes to write. It may be zero to indicate the maximum record size for the file. The size of the new record need not match the size of the existing record.
Return code:
returnCode can be any signed numeric data item and provides additional information:
>0
Operation successful.
0
Operation failed.