|
Okay, thanks for everyone's input. I think I'll continue to use the BASED() keyword since there seems to be no additional overhead and if another programmer removes the keyword, oh well. I am not using it to later define a DS when I need it, I was just using it for LIKE() field definitions. Thank you, Matt Tyler WinCo Foods, LLC mattt@xxxxxxxxxxxxxx -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Steve Richter Sent: Monday, April 04, 2005 1:55 p To: RPG programming on the AS400 / iSeries Subject: Re: Based data structure template On Apr 4, 2005 1:31 PM, Jon Paris <Jon.Paris@xxxxxxxxxxxxxx> wrote: > >> I am aware that this is the accepted practice, but I think it is a waste > of time. As I understand it, data structs are not initialized at module > start, so a plain old qualified data struct will not impact the running of a > program in that way. > > Data structures are initialized to spaces by default. The INZ keyword on a > DS causes each field to be initialized according to its type (i.e. zero for > numerics) oh ... I still think the added clutter is bad practice ;) -Steve -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.