× 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.



>Is it possible to have RPG output blanks or all zeroes
>to a date field defined as "L *ISO" in the physical
>file DDS source?

Matt gave the quick answer, so I'll chip in the longer answer.  You can't
have all zeroes in a date field because 0000-00-00 is not a valid date.
It's roughly equivalent to asking if you can store characters like "NONUM"
in a packed numeric field.

The typical way other databases get around this problem is to use the NULL
flag.  If there's a value in the date field, then make the field NOT NULL.
If there's no date, make it NULL.  Unfortunately, you STILL have to put a
valid date in the date field in addition to setting the NULL flag.

So, the typical workaround is to use a date that can never occur in your
real data: a special value like 0001-01-01.  This is not the optimum way to
do things, but in the world of compromises...
  --buck


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.