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



It is very likely that the DDL files will initialize the fiel with the default, eliminating the 4040 problem,
or at least, it will fail in the program that writes the bad data, making it easier to fix.

Anderson, Kurt wrote:

If I understand correctly, using DDL would have caused the program to blow up on the write instead of writing junk. I'm not saying that's bad, but I will say that doesn't fix the issue he's having.

-Kurt

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Wednesday, April 10, 2013 9:44 AM
To: Midrange Systems Technical Discussion
Subject: Re: Strange issue maybe you can help me with Mark

My initial suggestion would be to stop using DDS to define files and you'll stop getting X'4040' crap into numeric columns. DDL defined files will stop that, unlike DDS defined files.
Failing that, then take your question to the RPG list for further breakdown.


Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: "RPGLIST" <rpglist@xxxxxxxxxxx>
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>,
Date: 04/10/2013 10:22 AM
Subject: Strange issue maybe you can help me with Mark
Sent by: midrange-l-bounces@xxxxxxxxxxxx



I've got a normal file (DDS created) that I added a new field to, and then
recompiled. Everything fine so far.

I have a program that is writing data to this file but is not writing
anything to the new field, the write occurs without hiccup. I should
mention the write is being done like the following:

Write FileName MyDataDs;

The data structure is defined as an output file *Output.

I have a second program that is reading this file and its reading it into
a data structure, but its throwing a 0404 error on the new field.

I found a workaround of INZ'ng the file when I write but is that really
necessary?

How do I avoid this issue?





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.