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



Avoid surprise, Initialize.
That's my motto when working with data structures. I think if IBM had put
data structure initialization into RPG 1 back in the Stone Age, we wouldn't
even have have the issues we do with DDE. 
Whenever a data structure is created it is a reasonable assumption that it
needs the INZ keyword. 
What probably happened before was that the data was being moved into the
subfields before it was being read. Now with your code change that does
nothing, data in that data structure was being read before it was being set
to some valid value.

-Bob Cozzi
www.RPGxTools.com
If everything is under control, you are going too slow.
- Mario Andretti


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Marvin Radding
Sent: Tuesday, June 21, 2005 12:14 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Problem with Data Decimal Error

Yes, there was a problem.  It is usually a data structure that is not
getting initialized properly after the one line modification.  So I tack
an INZ on the data structure and everything is cool.  My question is why
didn't this show up before?

Marvin


-----Original Message-----
From: rpg400-l-bounces+mradding=dpi-west.com@xxxxxxxxxxxx
[mailto:rpg400-l-bounces+mradding=dpi-west.com@xxxxxxxxxxxx] On Behalf
Of Booth Martin
Sent: Tuesday, June 21, 2005 9:58 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: Problem with Data Decimal Error

Aside from why this happened when you did nothing to it, have you looked
at
the section of code?  Is there a data decimal error problem? 



Another question: when you comment the new line you added, so everthing
is
just as before, and compile, does the data decimal error go away?  I ask
that because you may not be working with the same source as was used to
compile the working program.  I've had situations where a programmer
couldn
t fix a problem so he just left the broken source code for the next guy.

  

 

---------------------------------

Booth Martin

http://www.martinvt.com

---------------------------------

-------Original Message-------

 

From: RPG programming on the AS400 / iSeries

Date: 06/21/05 11:50:18

To: RPG programming on the AS400 / iSeries

Subject: Problem with Data Decimal Error

 

  I have a problem with Data Decimal Errors.  I have a working program

that normally runs with no problems.  I add one line of code and now

when it runs it encounters a data decimal error in a area of the program

that I have never modified.  This is really frustrating me.

  We are working in V5R1 with RPG/ILE.

 

Thanks ahead of time for all of your help.

 

Marvin

 

 

 

--

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.