Where to find program error handling "standards"?

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
nidhir
New Member
Posts: 2
Joined: Wed Nov 26, 2014 6:36 pm

Where to find program error handling "standards"?

Post by nidhir »

Hi,

My simple question is Where to find program error handling "standards"?

There are many I am sure where we have an application programmer not properly handling error processing. Specially areas where you need to display the error codes properly to solve an abend., for example COBOL error, code, sqlcode etc..
Is there a manual section has the error handling process somewhere? Any guidance is appreciated.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Where to find program error handling "standards"?

Post by Robert Sample »

I've not run across any error handling standards, per se, in my 40+ years of programming. There are so many variables involved (SQL, DB2, COBOL, JCL, VSAM, sequential data sets just to name a few) that any attempt to define standards would pretty much fail quickly. Any attempt to define standards has to consider the application since something that should be fatal in one application may be a warning in a different application and not even recognized as an issue in a third application.

For example, with COBOL there are file status codes and extended file status codes for VSAM. Both should certainly be used as a standard but programs run all over the world every day that use no file status codes at all. And those programs are not "wrong" as they are producing correct results for their applications.
nidhir
New Member
Posts: 2
Joined: Wed Nov 26, 2014 6:36 pm

Re: Where to find program error handling "standards"?

Post by nidhir »

That is correct Robert. But if I try to create one for my company, would you like to suggest a starting point as a reference?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Where to find program error handling "standards"?

Post by Robert Sample »

I'm not sure you've described a very useful project, but if the company is paying for it ....

Your starting point should be to narrow down the scope of what you want to achieve. It is impossible to have program error handling standards for everything. Pick something to start with (for example, COBOL) and start putting together common errors and how they should be handled. I've always told my application programmers, for example, that a S0C7 data error is actually a programmer error since it is possible to code COBOL programs so that they never have a S0C7. Few programmers do this, but it is possible.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DB2 and IMS DB/DC”