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



Hi Peter,

IN210TXT has one field (named, also, in210txt) of 330 length (alpha) and it is populated via FTP.

ED210D01 has many fields, but the one we are talking about, D1CHGAMT, has the description
D1CHGAMT 12P 2 COLHDG(' ' ' ' 'Charge')

Barbara and Chris suggested the cause for my issue; I didn't have a chance to test Chris solution yet, but as soon as I do it I will post the results.



Thank you


Florin Todor


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Peter Dow
Sent: Friday, May 10, 2013 4:23 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Eval-corr

Hi Florin,

It would also help to see the definition of the IN210TXT and ED210D01 files.

--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx <mailto:petercdow@xxxxxxxxx>
pdow@xxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxx>/

On 5/8/2013 1:12 PM, Florin Todor wrote:
Here is the relevant part of the code:

H option(*nodebugio)

Fin210txt if e disk extfile('LTL400V331/IN210TXT')
F rename(in210txt:inrec)
F prefix(f_)
Fed210d01 o e k disk extfile('EDILIB/ED210D01')

D ds_detD01 e ds extname(ED210D01:*output)
---------------------------------------------------------------------------
D ds_hresD01 ds qualified inz

D D1CHGAMT 12 2

============================================================================

read IN210TXT;
dow not %eof(IN210TXT);

ds_hresD01 = f_in210txt;
// DS_HRESD01.D1CHGAMT = -793.49
eval-corr ds_detD01 = ds_hresD01;
// D1CHGAMT OF DS_DETD01 = 0000000793.49

==========================================================


Thank you


Florin Todor



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Brian May
Sent: Wednesday, May 08, 2013 3:52 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: RE: Eval-corr

Florin,

That should not happen. Could you provide your code so that we can take a look. My first guess is that there is some difference in your definitions causing the problem, but without the code, it is impossible to say.

Brian May
IBM i Modernization Specialist
Profound Logic Software
http://www.profoundlogic.com
937-439-7925 Phone
877-224-7768 Toll Free






-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Florin Todor
Sent: Wednesday, May 08, 2013 2:42 PM
To: 'rpg400-l@xxxxxxxxxxxx'
Subject: Eval-corr

I have two data structures: DS1 is described as extname(FileName:*output) and DS2 is described internally using the keyword "qualified" and having the fields identically described as DS1 In the program I have a command eval-corr DS1 = DS2; right before this command is executed, in DS2 there is a field having a negative value. After execution, the corresponding field in DS1 has the right value, but the negative sign is lost.
Both fields are described as 12 2 (one in DS1 in the external file, the other described in the program).
Please advise.


Thank you


Florin Todor


--
This is the RPG programming on the IBM i (AS/400 and 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.