ENDFL

Position the file pointer after the last record of a file

 

 

VSupported on OpenVMS

 

xcall ENDFL(channel)

Arguments

channel

The expression that contains the channel number opened to the file. (n)

Discussion

The ENDFL subroutine is used with sequential and relative files to position the file pointer after the last record of the file.

After calling ENDFL, a WRITES writes the designated record after the last record of the file. Any records that are locked due to a previous operation are unlocked.

Examples

xcall endfl(5)
writes(5, rec)