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




On Mar 11, 2011, at 3:14 PM, rpg400-l-request@xxxxxxxxxxxx wrote:

Lim -
I was just experimenting with the same idea.
Thanks!


Lim wrote:
If you can guarantee that no one will ever change the file that will
make them become non contiguous:

D allowances s dim(5) based(allowances_p)
D like(allowance1)
D allowances_p s * inz(%addr(allowance1))


This is a very dangerous practice for reasons I have outlined here and elsewhere before. Even if the fields remain contiguous in the record, unless there is a DS based on that record defined there is NO guarantee that the compiler and/or optimizing translator will keep them that way. It might work today and then break tomorrow with a simple re-compile.

This article explain a technique that is guaranteed to always work.

http://www.ibmsystemsmag.com/ibmi/february03/enewsletterexclusive/8073p3.aspx


Jon Paris


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.