Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



The READT statement is used to read a range of tape devices 0-9. It takes the general form: 

READT variable {FROM expression} THEN|ELSE statements


  • variable is the variable that will receive any data read from the tape device.
  • expression should evaluate to an integer value in the range 0-9 and specifies from which tape channel to read data. If the FROM clause is not specified the READT will assume channel 0.
  • If the READT fails then the statements associated with any ELSE clause will be executed. SYSTEM(0) will return the reason for the failure as follows:
Code  Description
There is no media attached to the channel
An end of file mark was found.


  • A "tape" does not only refer to magnetic tape devices, but also any device that has been described to jBASE. Writing device descriptors for jBASE is beyond the scope of this manual.
  • If no tape device has been assigned to the specified channel the jBASE debugger is entered with an appropriate message.
  • Each instance of the READT statement will read the next record available on the device. The record size is not limited to a single tape block and the entire record will be returned whatever block size has been allocated by the T-ATT command.

An example of use is as: 

    Reason = SYSTEM(0)
    IF Reason = 2 THEN BREAK ;* done
        CRT "ERROR"; STOP

Go back to jBASE BASIC.

Was this article helpful?