WEOF


The WEOF statement allows the program to write an EOF mark on an attached tape device.

 

COMMAND SYNTAX

WEOF {ON expression}

 

SYNTAX ELEMENTS

expression specifies the device channel to use. Should evaluate to a numeric integer argument in the range 0-9. Default value is 0.

 

NOTES

If the WEOF fails then the statements associated with any ELSE clause will be executed. SYSTEM(0) will return the reason for the failure as follows:

Value Meaning
1 there is no media attached to the channel
2 end of media found

 

NOTES

A "tape" does not refer to magnetic tape devices only but any device that has been described to jBASE.

If no tape device has been assigned to the channel specified then the jBASE debugger is entered with an appropriate message.

 

EXAMPLES

WEOF ON 5 ELSE
    CRT "No tape device exists for channel 5"
END


jBC