Synchronizes with journal output.
Sintaxe:
SET WAIT JOURNAL
>>-WAIT JOURNAL--JFILEID(data-value)--+-------------------+----->
'-REQID(data-value)-'
>--+---------+-------------------------------------------------><
'-STARTIO-'
Condition: INVREQ, IOERR, JIDERR, NOTAUTH, NOTOPEN
- Note:
- STARTIO ignored on TXSeries for Multiplatforms.
|
Descrição:
WAIT JOURNAL synchronizes the task with the output of one or more journal records that have been created but whose output
has been deferred; that is, with asynchronous journal output requests.
The journal records that are buffered in the file system might already be written out to auxiliary storage, or the journal
record output operation might be in progress.
If the output operation has already been completed, control returns immediately to the requesting task; if not, the
requesting task waits until the operation has been completed.
Output is initiated immediately, whether STARTIO is present or not.
If the requesting program has made a succession of successful asynchronous output requests to the same journal, it is
necessary to synchronize on only the last of these requests to ensure that all the journal records have reached
auxiliary storage.
This can be done either by issuing a stand-alone WAIT JOURNAL command, or by making the last output command itself
synchronous (by specifying the WAIT option in the JOURNAL command).
The following example shows how to request synchronization with the output of a journal record: