The READ function is used to suspend and resume the reading of records from the primary source datastore.
Category
Specialized
Syntax
READ('HOLD| ' 'RESUME' )
Parameters and Descriptions
Parameter | Description |
---|---|
'HOLD' | This parameter specifies that no additional records from the primary source datastore are to be read until the issuance of a READ RESUME function. |
'RESUME' | This parameter specifies that records can be read from the primary source datastore. RESUME reverses the effect of a prior READ HOLD function. |
Example
If the value of source field SRC_FLD1 is a X, stop reading records from the primary source datastore and execute an external procedure. Once the procedure completes, resume the reading of records.
IF SRC_FLD1 = 'X'
{
READ('HOLD')
OS('external_command')
READ('RESUME')
}