Tags and branches
Tag
The tag defines a usable branch-off point.
Tag:
Standard tags have been defined for you to use at any time.
Tag | Description |
---|---|
*SELECT | Branches at the end of the transformation module and selects the record to send to the target. |
*SKIP | Branches at the end of the transformation module and does not select the record. |
*ERROR | Branches at the end of the transformation module and triggers an error. An error message may be specified in the S.ERROR field. This error message is displayed in the messages and can be viewed from the supervision console. |
GOTO – Branch to a tag
This also defines a usable branch-off point.
GOTO *SKIP/*SELECT/*ERROR/Tag
This parameter is used to branch to a specific tag.
If I.CODE <> 'A' Then
If I.TAG <> 0 Then
S.ERROR = ‘ERROR IN TRANSFORMATION’
GOTO *ERROR
EndIf
EndIf