|
I have a similar process, needing to output AS400
data to pc users (customers). We standardized on .csv which is easily readable
by Excel & Access. My RPG writes a flat file in QTEMP, with column headings
in first record, followed by records of data. Make the column headings equal to
the max length of data in each field. Then CPYTOIMPF cmd will take the AS400
native file and create a .csv in a directory named by cust id. Then I either FTP
it to the user (you can capture the IP address they are at during their
interactive session from within a clp) or e-mail it. Most of my users prefer
e-mail. They only have to click on the attachment to open it (and if they have
set .csv files to be opened with Excel) the spreadsheet opens. Then they can do
their Excel things, print, save, change, etc. We let users send data to the
AS400 in the same .csv format, and CPYFRMIMPF works great. A little tricky with
NULL fields, and have to edit the heck out of every single column (dates like
29/29/29 and dollar amounts like 128.b9). But it runs by itself & users only
need to know how to open e-mail or find the ftp'd
file.
Jim Franz
|
As an Amazon Associate we earn from qualifying purchases.
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.