Booth, adding Inz w/o a value to a numeric field defined in the D specs
won't do anything different.
From Help w/in WDSCi:
"When the INZ parameter is not specified: Static standalone fields and
subfields of initialized data structures are initialized to their RPG
default initial values (for example, blanks for character, 0 for
numeric). "
To continue on, however:
"Subfields of uninitialized data structures (INZ not specified on the
definition specification for the data structure) are initialized to
blanks (regardless of their data type)."
Kurt Anderson
Application Developer
Highsmith Inc
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[
mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Wednesday, June 13, 2007 1:29 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Initialize fields
I am wondering what field is failing? I wonder if his problem would go
away if the field is defined on an D-Spec and he adds the inz heyword.
Sometimes I've had the problem if I try to use a workfield before it has
been populated
Scott Klement wrote:
Mike Berman wrote:
Scott, they do define it as Iseries data types as they have many
other clients on the box. THanks all for good ideas.!
Then I don't see why you'd get decimal data errors? Surely if they
have many other clients on the box, and they want to supply the data
in a compatible format, they'll supply data with valid decimal fields
that won't cause any errors!
--
---------------------------------
Booth Martin
http://www.Martinvt.com
---------------------------------
--
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.