× 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: L-date fields null-Reply
  • From: David Morris <dmorris@xxxxxxxxxxxxx>
  • Date: Thu, 11 Sep 1997 08:50:56 -0600

>>> Bob Cozzi <BobCozzi@ibm.net> 09/10 11:05 pm >>>

You know, people say there was never a year zero so 0000 is an invalid 
date. Okay, but I gotta believe that 0 is the value the comes before 1, so 
if 00010101 is a valid date why can't 0 be a null date value?

<< I agree that null values should not be validated.  It makes sense to me to
have the system set null values to the default value (system or DFT) or, if
specified, a value set with the ALWNULL DDS keywords.  That way nulls
could be implemented the same for different data type.  Null fields should be
set to this value.  For example, *LOVAL may be a better null value for
character fields than the default of *BLANKS.  It should be possible to specify
a null field that is not externally defined.  The null indicator should be 
handled
automatically if possible or via another compile (or file level) keyword.  If
handled automatically when a value is moved into a field it should set the null
off.  If *null is moved to the field it should be set to the null value (set on
alwnull or dft DDS) and the indicator set on.  The indicator attribute should be
considered part of the data for moves.

The ALWNULL compile option should also be allowed for SQL RPGIV.  Nulls
in SQL RPGIV should be able to use the built in function.   This is probably
available with V4.   Actually all new features introduced to RPGIV should be
implemented in SQL RPGIV or a BIG warning should be placed in the SQL
manual to identify areas that are not fully implemented.  We have lost many
hours over the years due to these undocumented release incompatibilities.

I haven't spent a lot of time thinking about nulls so I am probably missing
some points that make the current implementation make sense.  I have used
them enough to know they are problem areas.  I have faith the
implementation will improve.

David Morris
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MAJORDOMO@midrange.com
|    and specify 'unsubscribe MIDRANGE-L' in the body of your message.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.