Execution of an ENDFILE statement causes an end-of-file (EOF) record to be written to the specified disc file.
<value> specifies the unit number. The keyword is optional if it is the first item in the list. If the unit number is the only argument, the brackets around the argument list are optional.
<variable> will contain zero if the operation was successful, otherwise a positive value to indicate an error.
<label> specifies a label to go to in the event of an error.