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



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.

This thread ...

Replies:

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.