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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FILOP. [CALLI 155]<br />

35 . FOFXO Performs an OUT monitor call, using extended<br />

addressing and dump-mode I/O. The argument list<br />

is:<br />

addr:<br />

XWD<br />

addr1<br />

addr2<br />

channo, .FOFXO<br />

In the argument list:<br />

o<br />

channo is the channel number on which data is<br />

written to the opened file.<br />

o<br />

addr1 is the<br />

Conunand list<br />

.FOFXI.<br />

address<br />

format<br />

of<br />

is<br />

the conunand list.<br />

described above in<br />

o addr2 is the (optional) address of a word<br />

containing the block number of the file to<br />

perform a USETO to before writing.<br />

The I/O status bits are returned in the ac.<br />

22.48.3 Simu1taneous Fi1e Access with FILOP. UUO<br />

Multiple channels of a single job and/or multiple jobs can update a<br />

file simultaneously using FILOP. The monitor imposes no restrictions<br />

or interlocks when a file is being simultaneously updated. Therefore,<br />

users must ensure that separate jobs do not update the same block of<br />

the same file at the same time. The ENQ/DEQ Facility (refer to<br />

Chapter 8) may be used to ensure that such interference does not<br />

occur, but the monitor does not require its use when simultaneously<br />

updating a file.<br />

To update a file simultaneously, your program performs a<br />

FILOP. monitor call using function code 5 (.FOMAU). A file can be<br />

updated in thi~ manner when the file is idle, when it is being read,<br />

or when it 1S being updated by other jobs. A file cannot be<br />

simultaneously updated if the file is in single-access update mode;<br />

that is, when a LOOKUP and an ENTER have been performed or a<br />

FILOP. has been performed with Function code 4 (.FOSAU) or Function 6<br />

(. FOAPP) .<br />

Note that although an extended LOOKUP/ENTER/RENAME block can be<br />

specified by the FILOP. monitor call, your program cannot change the<br />

file attributes of a simultaneously updated file. The FILOP. monitor<br />

call uses the first four words of the extended argument list.<br />

In order to prevent excessive monitor overhead, files that are to be<br />

simultaneously updated should be pre-allocated into contiguous blocks,<br />

if possible. This will prevent the creation of inefficient retrieval<br />

pointers, and will lessen the chance that extended RIBs will be<br />

created.<br />

22-152

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

Saved successfully!

Ooh no, something went wrong!