monitor ;                                             
  myNum = %Int( MyChar ) ;
On-Error ;                                            
  clear myNum ;                                
endMon ;                                               
 
-----Original Message-----
From: Lim.Hock-Chai@xxxxxxxxxxxxxxx
To: rpg400-l@xxxxxxxxxxxx
Sent: Fri, 2 Mar 2007 11:51 AM
Subject: char to numeric 


I need to write a process that requires converting a 10 chars field in a
file to a numeric field.  There are millions of records in this file and
speed is very import for this process.  Does any one know of the most
speedy way to do this conversion?  Note:  This char field is left
justified (contains tailing blanks) and could contain all blanks.
 
thanks.
 

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