Details of how the code that you define when you specify a Build stage executes when the
stage is run in an IBM®
DataStage® job.
About this task
The sequence is as follows:
Procedure
- Handles any definitions that you specified
in the Definitions sub-tab when you entered
the stage details.
- Executes any code that was entered in the Pre-Loop sub-tab.
- Loops repeatedly until either all inputs
have run out of records, or the Per-Record code
has explicitly invoked endLoop(). In the loop, performs the following
steps:
- Reads one record for each input, except
where any of the following is true:
- The input has no more records left.
- The input has Auto Read set to false.
- The holdRecord() macro was called for
the input last time around the loop.
- Executes the Per-Record code, which can
explicitly read and write records, perform transfers, and invoke loop-control
macros such as endLoop().
- Performs each specified transfer, except
where any of the following is true:
- The input of the transfer has no more
records.
- The transfer has Auto Transfer set to
False.
- The discardTransfer() macro was called
for the transfer during the current loop iteration.
- Writes one record for each output, except
where any of the following is true:
- The output has Auto Write set to false.
- The discardRecord() macro was called for
the output during the current loop iteration.
- If you have specified code in the Post-loop sub-tab,
executes it.
- Returns a status, which is written to the IBM
DataStage Job Log.