David FOXWELL wrote:
> I'm having trouble understanding what difference based(TEMPLATE) makes.

It is just the same as any other BASED() structure. No memory is allocated by the compiler for myDS. There's nothing special about TEMPLATE in this case, except that it is meant to be obvious to other programmers that the DS is not meant to be used directly, only as a basis for LIKE() defining.


Sorry to be so dumb, but, I scanned the whole of the RPGILE reference manual for TEMPLATE and didn't find it.

At V6R1, there is a new keyword which lets you define a data structure as a template. One of the benefits over the workaround method above is that you can use the INZ() keyword on the DS subfields.

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.