(Contents)(Previous)(Next)

RUN with STOP Option

The STOP option of the RUN statement can be used to interrupt the execution of a DATALOAD or DATAUPDATE statement after a given number of rejected records.

Call:

When a run is interrupted, a special screen is displayed in which three or four function keys are set by LOAD according to the phase of execution:

( )

cancels the run

( )

concludes the run without interruption

( )

interrupts the run once more when the number of rows rejected

corresponds again to the 'stop option' specification

( )

displays the online protocol file. This key is only set when the

protocol file contains an entry.

Example 1:

run stop 10

In this example, the run is interrupted after 10 records have been rejected.

Example 2:

run from 100 for 300 stop 1

The second example shows how the STOP option can be combined with the range option: the load run only starts with the 100th record of the file and is interrupted after 300 records have been processed. If one record is rejected, the run is interrupted.

A load run is interrupted, even without an explicit specification of the STOP option, when the number of records indicated by the current transaction size has been rejected. This is not valid for BATCH runs.


(Contents)(Previous)(Next)