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



Jon -

According to your statement below, I will not have a problem with this?


d ds5846 DS LikeRec( IDC5846 : *Output ) inz

// Redefine the 5 contiguous Allowance types
// in the F5846 record as array Hdr01AllowanceType

d Hdr01AllowanceType...
d s Like( ds5846.SY$TA1 )
d Dim( 5 )
d Based( PtrHdr01AllowanceType )
d PtrHdr01AllowanceType...
d s * inz(%Addr(ds5846.SY$TA1))


Regards,
sjl



Jon wrote:
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 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.