You have specified two WHEN phrases in a SEARCH statement using the ALL option. You can specify only one WHEN phrase in this context.
Delete the extra WHEN phrase.
Related Topics: