I've written s/sheet-reading programs (thank you, Scott). But I didn't
want to get involved with having to interrogate cell-type to see if it's
numeric or alpha, which I haven't yet had to do. And there's the issue
of Excel versions that are/will be un-supported by Apache POI.
I guess I just thought a [comma, tab, pipe] delimited file parser (my
upfront screen asks what the delimiter is, and whether some/all fields
are surrounded by double quotes) would be more generally useful to me.
Arthur J. Marino
RockTenn Corporation
(631) 297-2276
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Douglas Handy
Sent: Thursday, March 26, 2009 9:31 AM
To: RPG programming on the IBM i / System i
Subject: Re: Using an Expression to control a FOR loop
Arthur,
First it determines 'max' field attributes for every column in the .csv
file and then displays a subfile showing the 'DDS'.
Why convert to *.csv file format first if they are giving you a
spreadsheet? Scott has published articles on using HSSF to read the
spreadsheet directly from your RPG program using a service program.
Here is
one link:
http://www.systeminetwork.com/article.cfm?id=55032
The 2nd pass reads the data for the sole purpose of building a string
that exactly mimics the DDS record layout. That's why ...
Out of curiousity, how then are you handling negative numbers?
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
This message, including its attachments, constitutes an electronic communication within the meaning of the Electronic Communications Privacy Act, 18 U.S.C. Section 2510. This message is the confidential property of RockTenn, and disclosure is strictly limited to recipients intended by the sender. Unless previously authorized in writing, this message does not constitute an offer, acceptance, or agreement of any kind. This message may contain confidential attorney-client privileged information and attorney work product. If you are not the intended recipient, or responsible for delivering e-mail to the intended recipient, you are advised that use, dissemination, forwarding, printing, or copying of this message is STRICTLY PROHIBITED. If you receive this message in error, please notify the sender immediately by return e-mail and delete the message entirely from your system. Sender is not liable for damage caused by viruses transmitted with this message, or errors or omissions in content caused by transmission.
(c) RockTenn, Norcross, GA.
As an Amazon Associate we earn from qualifying purchases.