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



Hi Jim,

%float might be able to do it:

https://www.ibm.com/docs/en/i/7.3?topic=operations-rules-converting-character-values-numeric-values-using-built-in-functions

* Floating point data, for example '1.2E6', is only allowed for %FLOAT.
* For %FLOAT, the exponent is optional. It can be either 'E' or 'e'.
The sign for the exponent is optional. It must precede the numeric
part of the exponent.

--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx
pdow@xxxxxxxxxxxxxx /

On 5/1/2023 1:14 PM, Jim Franz wrote:
I cannot control or alter the source of the import files.
two columns have long strings of digits, account numbers, most are
readable, but some like
1.10001E+12 (scientific notation).
Is there a rpgle or db2 sql method to convert these back exactly to the
numbers they exported via .csv file?
User intervention, at this time, is not an option.
I read thru the thread history, in fact i had one a number of years ago,
but in that instance i controlled the source of the data.
Thank you,
Jim Franz

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.