× 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 3/15/2010 11:14 AM, David FOXWELL wrote:
Hi,

If I have myDS DS LIKEDS( templateDS )

TemplateDS DS Based(template)

do I have to initialise the subfields of myDS manually or is there another way?


If you just want default initializations, then use INZ with no parameter for myDS.

If you want other initializations, you can code INZ on the TemplateDS subfields and then use INZ(*LIKEDS) for myDS. But you won't be able to code INZ on the TemplateDS subfields because of the BASED keyword. If you're on V6R1, replace BASED(template) with just the TEMPLATE keyword. If you're not on V6R1, remove the BASED keyword.

If you're not on V6R1 yet, and you want to initialize the template, I would code it like this, so you'll pick up the TEMPLATE keyword when it's available.

D TemplateDS DS
/if defined(*v6r1m0)
D TEMPLATE
/endif

By the way, I would also code the QUALIFIED keyword on the TemplateDS to keep its subfield names private.


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.