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



Yes I have, and it appends the zero to the end......see below for results,
and I have also tried a movel which then appended four zeros to the end.


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Booth Martin
Sent: Thursday, February 08, 2007 2:40 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: RPG III

Have you tried just doing a MOVE from the 10A field to a 7/0 field?  It 
should work just fine.

Douglas Palme wrote:
I am in the process of modifying an RPG III program that I am not
permitted
to convert to ILE.

 

One of the fields is a 10 character field that only contains numeric
numbers
and will never have more than seven digits..I know I could change the
field
length to 7 but I was told no to that as well as it might blow up other
programs.

 

Here is the delimna, I need to move the value to a 7 digit numeric.  It is
possible that it can have anywhere from 1 to seven digits.

 

Example:

 

'116769    ' - Charcter value

 

I have a new field defined as 7,0

 

When I do a move on it it shows up as 1167690 and a movel gives me
7690000.

 

Suggestions? Hints?  Converting it is not an option.

 

Douglas

 




****************************************************************************
This transmission may contain information that is privileged,
Confidential and/or exempt from disclosure under applicable law.
If you are not the intended recipient, you are hereby notified that
any disclosure, copying, distribution, or use of the information
contained herein (including any reliance thereon) is STRICTLY
PROHIBITED. If you received this transmission in error, please
immediately contact the sender and destroy the material in its
entirety, whether in electronic or hard copy format. Thank you.

****************************************************************************


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.