Page 1 of 1
Error code for infinite Loop
Posted:
Fri Sep 03, 2010 12:41 pm
by diptisaini
Hi,
Can anyone please tell me what is the error code if an infinite loop occur in a program ?
I am writing program using Programming Language as Natual and database as Adabas.
Regards
Dipti
Re: Error code for infinite Loop
Posted:
Fri Sep 03, 2010 3:27 pm
by NicC
If your program is in an infinite loop it has not errored, except in logic. Therefore there is no error code. You could get an Sx22, where x is one of several digits, which is caused by the job being cancelled by some means, which determines x.
Re: Error code for infinite Loop
Posted:
Sat Sep 04, 2010 12:11 am
by dick scherrer
Hello,
Does this ever work correctly or does certain data cause the neverending loop?
Suggest you implement a counter to terminate any loop after a "reasonable maximum" times thru the loop.
You will probably need to add a bit of diagnostic code to determine why the code never comes out of the loop.