If the amount of data being updated exceeds the current record length, then the excess data updates the next record. If the current record is the last record in the file, a new record is created.
Figure 94. Updating a Binary Stream File with Data Longer than Record Length
Example:
The following example illustrates updating a binary stream file with data that is longer than the record length.
Figure 95. ILE C Source to Update a Binary Stream File with Data Longer than the Record Length
|
If the amount of data being updated is shorter than the current record length, then the record is partially updated and the remainder is unchanged.
Figure 96. Updating a Binary Stream File with Data Shorter than Record Length
Example:
The following example illustrates updating a binary stream file with data that is shorter than the record length.
Figure 97. ILE C Source to Update a Binary Stream File with Data Shorter than the Record Length
|
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.