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



Barbara,


Marco wrote:
One difference is about null capable fields.

A DS defined with EXTNAME also defines the relevant subfields as null
capable.


but this true from V5R3 or even earlier?


From V5R2 RPG reference:

"Note: If the file used for an externally described data structure has
null-capable fields defined, the null attribute is not used in defining
the RPG subfield."

but the next paragraph states:

"If the field is a multiple-occurrence data structure or a table, an array
of null indicators will be associated with the field. Each null indicator
corresponds to an occurrence of the data structure or element of the
table."


From V5R3 manual:

"Null-capable fields in externally-described data structures If the file
used for an externally described data structure has null-capable fields
defined, the matching RPG subfields are defined to be null-capable.
Similarly, if a record format has null-capable fields, a data structure
defined with LIKEREC will have null-capable subfields. When a data
structure has null-capable subfields, another data structure defined like
that data structure using LIKEDS will also have null-capable subfields.
However, using the LIKE keyword to define one field like another
null-capable field does not cause the new field to be null-capable."

Thanks
Marco


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.