× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: SQL vs DDS
  • From: "R. Bruce Hoffman, Jr." <rbruceh@xxxxxxx>
  • Date: Thu, 26 Aug 1999 08:50:18 -0400

John P Carr wrote:
> 
> In addition to using a new tool,   we should also rethink our process.
> The use of most of the new funcitions in SQL (Constraints, etc)  will
> require us to rethink HOW we Design our applications.    In the case
> of Constraints for example,  Your programs better be ready for
> error messages on Updates/Writes/Deletes.   Also you have to
> remove all those edit checks in your applications and move them
> to the Data Base.  (Right Bruce?)
> 

Yes on the rethink. Problem is that the edit checks that were in the
database should have been enforced at the database level and not just
the display level. Water under the bridge, over the dam and out to the
sea...

As for the errors on the IO statements, being a COBOL programmer,
checking the status codes after the IO comes naturally. I do admit that
in many of my early RPG programs, that error check was lacking and
suspect that most of the existing RPG does not have the error checking
in it.

HOWEVER... if you are going to use SQL, then embed it. This more or less
forces you to check the SQLSTATE and SQLERROR returns. My personal
preference is for the SQLSTATE as it is much more consistent across
platforms. The only value that seems to be common to the SQLERROR is the
100 return for record not found.

-- 
===========================================================
R. Bruce Hoffman, Jr.
 -- IBM Certified AS/400 Professional System Administrator
 -- IBM Certified AS/400 Professional Network Administrator

"The sum of all human knowledge is a fixed constant.
    It's the population that keeps growing!"
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.