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



   "as far as I'm aware, you can do it through DDS...you just can't do it
   through SEQUEL statements....I know it's possible when coding in RPG so I
   am
   assuming you can do the same thing in COBOL."

   Actually, it works in SEQUEL as well.  In your "CREATE TABLE" statement
   just omit the "NOT NULL" clause and the field is null capable.  Fields are
   null capable by default.  

   Then in a SELECT statement, specify an indicator to tell you when the
   "COLUMN" is null.  e.g.:

      SELECT not_null_field, null_capable_field, field3
            INTO :not-null-field, :null-capable-field
   :null-capable-field-ind, field3
            FROM myfile

   Notice there is no comma between ':null-capable-field' and
   ':null-capable-field-ind'.  the INDICATOR field is a signed COMP-4 (binary
   right?) which will be negative whenever a null value exists in the
   retrieved field.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.262 / Virus Database: 264.6.0 - Release Date: 8/11/2004

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.