Any language can have problems if the author lacks basic programming skills for error handling. Make sure data is correct and use every available file- status/SQLCODE/return code instead of assuming an operation worked. It will bloat your code and make it run longer than not taking such precautions. Even check file-status on a WRITE as you may have run out of space. How many programmers ever do that?
The best system design principles I learned are that the programs handling data input handle validation, so that the other programs that merely handle data do not have to revalidate what is supposed to be already validated data. That reduces the run-time of the back end programs but raises the risk some future design change will get overlooked as to all of the affected programs and an abend will be in your future. Every program sstill needs to check file- status/SQLCODE/return code for the potential of a problem. Do you want someone to give you a list of of silly things not to do like divide by zero, use non-numeric fields in numeric operations, don't use subscripts wisely, and ignore checking file-status/SQLCODE/return code? On Fri, 20 Jun 2008 08:58:07 -0500, J. Chiampi <[EMAIL PROTECTED]> wrote: >Hello, > >I'm looking for information about problems that could occur in production >with Cobol programs and that could generate abend. I would like to find a >description and how to prevent them before they occur. > >For instance, I think that it could be interesting to avoid moving >alphanumeric variables into numeric variable without checking them by using >a IF NUMERIC or moving data into another that is shorter or avoid closing >file or never check array boundaries... > >Do you see other important cases related to performance or robustness? > >Thanks in advance. > >Regards > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO >Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html