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



Hello,

For defining a constant field for use in RPG is it more efficient
(when using to compare against) to have a non-changeable "C" type than
a data structure subfield that is initialized?

D FUNCTYPE C Const(0602)
D keyfields DS Qualified
D FUNCTYPE 10I 0 Inz(0602)

For example in the following D specs, if you had to compare a value to
see if it was 0602 multiple times I would expect the named constant to
be more efficient because the system does not have to check each time
for content change unlike with the data structure subfield.

If key = FUNCTYPE;
:
:
vs
If key = keyfields.FUNCTYPE;
:
:

Thanks for any thoughts on this.
-Paul

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.