|
I have TAATOOL command CPYSPLFDTA working for simple spreadsheets.
http://www.taatool.com/document/L_cpysplfdta.htm
The below
1) inputs a spoolfile
2) removes all headings
3) removes totals
4) Adds one heading for row 1 cell headings.
5) Outputs to a .csv file on IFS.
6)Excel opened this without issue.
CPYSPLFDTA FILE(NRIPF01P) JOB(936890/CPASFIGC/BRCSFTIGNR) SPLNBR(3)
ADDDELIMTR(*DFT) IFSFILE('/PAULS/Non-Responder') IFSEXT('.csv') STMFOPT(*REPLACE)
COLHDGFREQ(*ONCE) COLHDLINES(4 4) OMIT((69 72 'Page') (69 76 'CPASFIGC')
(2 8 'Company') (2 7 '** END') (2 4 'MAC'))
Paul
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Raul A Jager W
Sent: Friday, February 13, 2015 1:40 PM
To: Midrange Systems Technical Discussion
Subject: Re: Automated Unattended Convert spoolfile to Excel and emailed as an attachement
I think you can also use OVRPRTF to output directly pdf.
On 02/12/2015 10:38 PM, Sam_L wrote:
There is an Info Print Redbook that contains a sample user mapping
program in RPG.
At my last job we had a program that took a spool file and created a
named PDF, (named with a name we provided as opposed to the random
name that Info Print creates) and then e-mailed the PDF to a user or
users, or FTPed it to a cataloging system on a Windows server. There
was a lot of internal plumbing we added for the naming and FTPing, but
the code to direct Info Print was cribbed and adapted from the Redbook.
Unfortunately, our program did not do any Excel conversion. And while
Info Print will convert a spool file to a PDF, I'm not sure it will do
a conversion to Excel, and my recollection is that the program doesn't
see individual print lines, but operates at the spool file level.
It would seem to me that what you want is to attach a data queue to
the OUTQ and then when a spool file arrives on the data queue, you
convert it and send it off. (Though someone mentioned a commercial
product that did something like this.)
Or, if you have control of the generating program(S) you could get
really fancy and go with a generalized approach and use OAR to replace
the print file, minimizing changes to each program. The general
purpose OAR handler would have to be table driven to know for each
report layout how to identify the data fields. And that to me seem
like a fair amount of coding, much of which had already been done with
existing commercial products.
Sam
On 2/11/2015 9:02 PM, Steinmetz, Paul wrote:
I want thank everyone for all their input.
Because we are already using IBM Info Print Server, I think a
combination of a "mapping object" or a "user mapping program" could
be created that would do the splf to Excel conversion.
This program could either use an API or one of the TAATOOL commands,
CPYSPLFDTA The email would still be handled by IPS.
Has anyone ever created a "user mapping program", with an Excel
conversion?
---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
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.