WHEN command

Use the WHEN command to test return codes from programs invoked by an immediately preceding CALL or LOADGO command, and to take a prescribed action if the return code meets a certain specified condition.