24.12.2013 Views

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

STATZ [OPCODE 063]<br />

22.163 STATZ [OPCODE 063]<br />

FUNCTION<br />

Tests the I/O status (also called "file status") word for a device and<br />

skips if all of the specified bits are cleared. Use FILOP. to perform<br />

a STATZ on an extended I/O channel. For a complete list of I/O status<br />

bits, refer to the appropriate device chapter in <strong>Volume</strong> 1.<br />

CALLING SEQUENCE<br />

STATZ channo,mask<br />

return 1<br />

return 2<br />

In the calling sequence, the program supplies the following variables:<br />

o<br />

o<br />

channo is the number of an initialized channel.<br />

mask is a halfword in which each bit that you set corresponds<br />

to a bit in the I/O status word.<br />

The I/O status bits are a set of 18 bits (right half) that reflect the<br />

current state of a file transmission. They are initially set by your<br />

program with the INIT/OPEN monitor call. Thereafter, the monitor sets<br />

the bits, but your program can test and reset them with any of several<br />

monitor calls.<br />

RETURN<br />

The call returns to return 1 if one or more of the specified bits is<br />

1, or to return 2 if all of-the specified bits are O.<br />

RELATED CALLS<br />

o<br />

o<br />

o<br />

FILOP.<br />

SETSTS<br />

STATO.<br />

COMMON PROGRAMMING ERRORS<br />

Forgetting to initialize the I/O channel.<br />

22-408

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!