• Subject: Re: CL Question
  • From: David Morris <dmorris@xxxxxxxxxxxxx>
  • Date: Tue, 14 Apr 1998 10:11:58 -0600

Rob,

You can set a character field to decimal field's value if the fields are the 
same length.  Declare them the same length and use chgvar var(&char) 
value(&dec).  If you don't want the leading zeros, you will have to overlay 
them with blanks using %sst in a loop.

David Morris

>>> "Moore, Rob" <moorer@londonhydro.com> 04/14 8:43 AM >>>
I have a character string which I want to start with the value '1' and
increment by 1.

How do I place the value of a *DEC into a *CHAR?

Rob Moore
Technical Analyst
London Hydro
(519) 661-5893
moorer@londonhydro.com 

*Disclaimer* The above message(s) are the views and opinions of the
author and do not necessarily reflect those of London Hydro or others.

                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
               
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 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].