I tried the system program QSPGETF. It created a physical file member,
but when I FTP the file to a PC and attempt to read it with an AFP
viewer (IBM's plug-in) I see garbage. Viewing the file in a text editor
shows the content I'm interested in burried in a haze of control
information, but the content is not the same general format as the
report data..
Thanks in advance for any suggestions.
--
Jeff Gunter
IBM Certified Specialist - AS/400 RPG Programmer
_______________________________________
Visit my Web Site at:
The APIs QSPOPNSP, QSPGETSP, QSPCLOSP, QUSRSPLA, QSPCRTSP, and QSPPUTSP
should be used to manipulate the spooled files. These ARE supported.
With a simple CL program (if you are a CL programmer), you could retrieve
the AFPDS from the spooled file (via QSPGETSP and format SPFR0300...returns
the data stream in a user space you specify...and create) and write the
records to a DB file (where you can have whatever record length you want
and minimize the DASD used). Care may need to be taken when writing the
AFPDS data to the DB file. I don't know how the view likes to see the data
on the PC side. I assume it would just be a byte stream file where there
is no record length (in this case nothing special would need to be done).
If you just want text only, then you would also have to add an extra step
of interpretting the AFPDS commands. You would be looking for the Print
Text commands if all you want is text. If you want some formatting such as
page breaks, you would need to also look for Begin Page and End Page
commands.
Jeff Gunter wrote:
--
Rodney A Johnson
Technical Team Lead for AS/400 Spool
Dept GJC
IBM Rochester, Minnesota
The contents of this message express only the sender's opinion.
This message does not necessarily reflect the policy or views of
my employer, IBM. All responsibility for the statements
made in this Usenet posting resides solely and completely with the
sender.
Do you know where I might find some sample code for the method you suggested?
Jeff
For details regarding the mapping of the information placed into the user space,
see the API QSPGETSP in the InfoCenter (under the Print APIs section) at
URL: http://as400bks.rochester.ibm.com/
Tom Liotta
In article <39B8EA2D...@rchland.ibm.com>,
--
Tom Liotta, AS/400 Systems Programmer
The PowerTech Group, Inc.; http://www.powertechgroup.com/
...and for you automated email spammers out there:
rhu...@fcc.gov jqu...@fcc.gov sn...@fcc.gov rch...@fcc.gov
Sent via Deja.com http://www.deja.com/
Before you buy.
We have Native and PC-based converters to extract RAW AFP spool data to an
IFS or PC file. Once on the PC you can use the CA/400 AFP Viewer to display
the reports.
We also have a Native converter for converting AFP to TIFF or PDF.
What's your ultimate goal ?
For more info, contact me directly or check out our web site.
Regards,
Richard Schoen
RJS Software Systems Inc.
"The AS/400 Report and Data Delivery Experts"
Email: ric...@rjssoft.com
Web Site: http://www.rjssoft.com
Jeff Gunter <JeffG...@as400guy.com> wrote in message
news:39B6BD7A...@as400guy.com...
PDFingMailer can convert AFPDS spooled-files to PDF (Portable Document
Format) files. Look at http://www.pdfing,com for details.
Regards
David Fowle