‎2007 May 18 8:10 PM
Is it possible to catch an illegal assignment to a data
object inside a loop and continue? Or does this type of
exception cause the termination of the loop?
I want to process records within a loop and ignore those
records which throw exceptions.
‎2007 May 18 8:26 PM
hi Gregory,
Check this, it will catch the system exceptions which will cause by data problems.
CATCH SYSTEM-EXCEPTIONS arithmetic_errors = 4
OTHERS = 8.
<<YOUR CODE>>
ENDCATCH.
Thanks and Regards
Pavan Kothapalli
‎2007 May 18 8:13 PM
use continue statement.
loop at iatb.
if cond ne 4.
continue.
endif.
endloop.
continue statement - it skip that record and go for further record in that loop
‎2007 May 18 8:26 PM
hi Gregory,
Check this, it will catch the system exceptions which will cause by data problems.
CATCH SYSTEM-EXCEPTIONS arithmetic_errors = 4
OTHERS = 8.
<<YOUR CODE>>
ENDCATCH.
Thanks and Regards
Pavan Kothapalli
‎2007 May 18 8:26 PM
Hi Gregory,
Use <b>CONTINUE</b>
The continue statement is coded within a loop. It acts like a goto, passing control immediately to the terminating statement of the loop and beginning a new loop pass. In effect, it causes the statements below it within the loop to be ignored and a new loop pass to begin.
The following points apply:
continue can only be coded within a loop.
continue has no additions.
Reward points if helpful.
Thanks
Aneesh.