Error code for infinite Loop

Software AG's platform-independent programming language with full support for open-source and Internet applications

Error code for infinite Loop

Postby diptisaini » Fri Sep 03, 2010 12:41 pm


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.
Posts: 90
Joined: Sun Mar 14, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Error code for infinite Loop

Postby NicC » Fri Sep 03, 2010 3:27 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 3026
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Error code for infinite Loop

Postby dick scherrer » Sat Sep 04, 2010 12:11 am


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.
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Return to Natural


  • Related topics
    Last post