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



Oh, having read the other posts I stand corrected, however I don't seem to
recall anyone telling me NOT to use MOVE or MOVEL, you still need MOVE
occasionally. Also as I keep saying we dont all have the good fortune to only
write new programs, some of us have to work on old RPGIII or even RPGII
programs and we cannot always just convert to RPGIV, fact of life really. So we
still NEED to know how to use those darned old-fashioned things.


Steve

-----Oorspronkelijk bericht-----
Van: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]Namens Raby, Steve
Verzonden: vrijdag 1 juni 2007 9:20
Aan: RPG programming on the AS400 / iSeries
Onderwerp: RE: Editcode


But you can't EVAL a numeric to character or vice versa

-----Oorspronkelijk bericht-----
Van: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]Namens Glenn Gundermann
Verzonden: donderdag 31 mei 2007 21:11
Aan: RPG programming on the AS400 / iSeries
Onderwerp: Re: Editcode


Derek,

Everyone has been told to stop using MOVE and MOVEL a long time ago. If
for some reason you aren't going free-format, you should still be using
the EVAL opcode.

I would strongly suggest free-format (WDSC will convert for you) and look
at %dec or %int to convert from character.

I hope this helps.

Glenn Gundermann
ggundermann@xxxxxx
(647) 272-3295


Hi,

I have to move a value from a 10 character field to a 2 decimal

ABC 10
xyz 2 0

I am doing a MOVEL operation to move this value to the numeric field.
Now if i have the value of ABC = 1, then the value passed on to XYZ is
10(Since it moves 1 from left, and initial value of XYZ is 00)
What is the edit code that i can use to remove the trailing Zeros before i
move the character field to the numeric field.?

Thanks in advance

Derek

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.