Server routines - how to get out infinite looping
Posted: Mon Apr 16, 2012 2:14 pm
Dear all
I have a few server routines that takes in a variable and parses it out.
In short we have a lot of information in our material number and I have to parse out components based on some specific logic.
The logic is working great and it returns and tests out great.
I just have one concern.. as most of the routines I have built include a do while looping construct
As of now I have tested out the for 1.4 million materials and it works great but my only concern before putting to production is the threat or risk of a job getting stuck in one of the routines for infinite looping.
What is the best way to get some check in place so that it times out.. is there a timeout concept we can tie to the routine so that if it spends more than 60 seconds then it exists out with ANS set to "no value found" or something like that..
I have a few server routines that takes in a variable and parses it out.
In short we have a lot of information in our material number and I have to parse out components based on some specific logic.
The logic is working great and it returns and tests out great.
I just have one concern.. as most of the routines I have built include a do while looping construct
As of now I have tested out the for 1.4 million materials and it works great but my only concern before putting to production is the threat or risk of a job getting stuck in one of the routines for infinite looping.
What is the best way to get some check in place so that it times out.. is there a timeout concept we can tie to the routine so that if it spends more than 60 seconds then it exists out with ANS set to "no value found" or something like that..