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



DeLong, Eric wrote:
...
One major difference between most languages that support null and RPG is
that you cannot easily propagate null fields within your code.
Internally defined variables do not come with null flags, though you can
define them manually... To pass a null field to a procedure? Well, I
suppose you could pass two parms for each one you pass now....
Regardless, you are correct that there is a concept of null support for
RPG, but it exists only in the DB interface, and nowhere else... If all
fields supported a null attribute, then the situation would not be so
bad.


There have been a couple of small improvements in RPG's null support.

V5R2: If a file has null-capable fields, an externally-described data structure will have null-capable subfields. Also a data structure defined with LIKEREC or LIKEDS if the parent has null-capable fields.

This support was added along with the result-DS support for I/O to externally-described files. But it also gives a kludgy way of getting additional null-capable fields in a program.

V5R4: OPTIONS(*NULLIND) passes the null flags along with the variable, so the called procedure has access to the actual null flags.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.