Use the %DEC built-in function istead of MOVE.

On Jan 30, 2008 1:23 PM, Mike Berman <mikeba777@xxxxxxxxx> wrote:

OK I did a little experiment. A test file with a record in it, with a
alpha field of 8, with a negative sign. when moving this field of 8 to a
numeric field of 8 loses the negative sign, when the sign is to the left.
when it is to the right a 0 takes it place.

This seems to be the problem.

Thank you all,


Adam Glauser <adamglauser@xxxxxxxxxxxx> wrote:
Mike Berman wrote:
ulitmately it is printed with a "K" but the org, field is 7 len. does it
lose the sign under what circumstances, would you see it losing the sign if
at all?

Edit code K indicates a trailing negative sign ... any chance another
field is overlapping the column after the ones (10^0) place of QNUM?
--
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.




---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo!
Search.
--
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.