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



I don't have access to the creating of the original .xlsx or the conversion
to .csv (done by a bank) - but the .csv is what i have to import. This is
in a automated stream, so user downloads from bank, and run through
clp/rpgle process to update the Power i application.
this is value in csv 1.10001E+12
this is value if i open csv with Excel and format column 1100009250903 as a
number...

this rpgle does not work - eval @pnbr = %float(@p20) - it
returned 1100010000000

If this automated process becomes a series of steps in Excel to reformat
the csv before processing - well... it is what it is ....

(pardon me if Gmail's browser editor really messed up the copy/paste (must
be ai...)

Jim





On Mon, May 1, 2023 at 6:24 PM John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:

On Mon, May 1, 2023 at 4:15 PM Jim Franz <franz9000@xxxxxxxxx> wrote:

I cannot control or alter the source of the import files.

Does this mean you do not have access to the CSV?

Is there a rpgle or db2 sql method to convert these back exactly to the
numbers they exported via .csv file?

If you do not have the CSV, then I'm not sure. There *might* not be
any reliable way to recover the original values exactly. It depends on
several different factors.

The more "upstream" you can get, the better.

John Y.
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.