Previous Topic: SyntaxNext Topic: SKIP


Parameters

SETRC supports the following parameter:

return-code

An integer value between 0 and 4095.

Example

This example syntax stops processing, and returns a condition code of 8, once a non-packed value is detected in the field PACKED-FIELD.

COPY,
  LAYOUTFILE(LAYOUT),
  SETRC(0),
  IF(PACKED-FIELD,NEP),
    SETRC(8),
    STOP