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


  • Subject: RE: What bugs you about KLISTs in RPG IV?
  • From: "Dan Bale" <dbale@xxxxxxxxxxx>
  • Date: Tue, 15 Jun 1999 12:11:51 -0400



Hans, I must say that I am pleasantly surprised by your
involvement as an official IBM representative seeking our
opinions on things RPG!  (This is my third week on the
list.)  This is in contrast to the "ivory tower" image of
the IBM development labs I have had in the past.  I know
that IBM has involved customers in helping develop products,
but sometimes I wondered about these customers.  You know,
the official IBM line, "Our customers tell us...", but what
they "told" you was nothing along the lines of what I would
have said.  Just who were those "customers"?   Anyways....

>>...the key fields are somewhat awkward on the D-Spec.  For
>>example, you can also code indexed arrays, which are not
>>allowed today in positions 7-21 of the D-Spec.

It seems to me that indexed arrays as KFLDs, though
"allowed", are a good example of bad coding techniques.
I have long been in the habit of using the database's key
fields' names as the KFLD names.  In any case, backward
compatibility shouldn't be an issue as long as you continue
to support the KLIST/KFLD calculation op codes.

>>Someone raised the idea of a "KLIST Data Structure".  That is
>>an interesting idea which I'll pursue further.   But, I don't
>>think it would be able  to fully replace the functionality of
>>of the KLIST.

Sounds like the same problem would exist with the indexed arrays.

>>One person came close to another idea that we've been playing
>>with here in the lab.  As you know, there are rumors floating
>>around about a new free-format calc spec.  Let's assume for a
>>moment that these rumors are true.

HEY, HEY!!!  Is it Christmas, yet?  (Sorry, got the best of me
there.)

>>Imagine for a moment:
>>     cf  chain (custno: acctno: date) mastfile
>>or even:
>>     cf  chain (prodno: 'X' + subcode(n+14)) mastfile

>>In other words, full expressions coded directly as key fields
>>for the keyed I/O operations!

That would be a beautiful thing!

>>Would you take advantage of this if available?
Is the pope Catholic?

>>Would you still use KLISTs?
Do pigs fly?

- Dan Bale





* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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.