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



Bob Cozzi wrote:
There is nothing wrong with using the "MULT 10000.01" technique in RPGIII. I
do it every time I need to convert a date in that old language.
If you use it in RPG IV, then you are right it is a questionable choice.
The only other technique in RPG III is to use a data structure, but that can
be a bit more complex that the MULT. If you haven't seen it before then it
doesn't matter which one you use because the person maintaining the code
after you will have to deal with it, so just be sure to document it
properly.
-Bob

Well, once you factor in the necessary comments, moving DS subfields still ends up as fewer source records. Not to mention 100-150 times faster. But why use a clear and efficient programming technique when there are some really cool ways (like that MULT trick) to show off your programming prowess? ;-)


Cheers! Hans


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.