Author: Robert Sample
Posted: Tue May 09, 2017 8:04 pm (GMT 5.5)
Until you get a value of 4588313000 in the variable. Merely saying the code has run fine for a year (or 5 years or whatever) does NOT mean the code won't cause problems tomorrow -- it all depends upon what value is stored in KC_KONDBAH04, and unless that is a fixed value there is ALWAYS the potential for a problem with your assignment statement.
This implies the problem is something else entirely -- such as a wild branch or some other external action impacting the code. Such problems are notoriously difficult to diagnose and correct. If your site has a code analyzer, you need to turn it on for the program and take the performance hit until you collect enough data to figure out the true problem and resolve it.
_________________
TANSTAAFL
The first rule of code reuse is that the code needs to be worth re-using.
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth
Posted: Tue May 09, 2017 8:04 pm (GMT 5.5)
Quote: |
Max value a bin fixed(32) can hold is 2147483648. So the PIC declaration is Okay. |
Quote: |
The funny thing is sometimes the job executes successfully after restart in CTRL-M. |
_________________
TANSTAAFL
The first rule of code reuse is that the code needs to be worth re-using.
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth