|
Mike, I've been working on this for a few days. I am very new to JAVA so it has been quite the experience. I as able to pull a spoolfile off with the AS/400 Toolkit using the PrintObjectInputStream and the AS/400Text Converter classes. The problem with that was once I got it into a text file there was a lot of garbage in it too. That's when I realized it was printer control characters it could not convert. Sooo.. I was told the easiest way was to copy it to a physical file with CPYSPLF and then you could put it to a stream file on the IFS with CPYTOIMPF. I am just now using the example in the AS/400 tool box for sequential file access to get the file from the physical file instead of using a stream. The example works but sends it to the system console - should be easy to change to send it to a text file. You can also use Operations Navigator and go into the AS400 -> basic operations -> Printer Output and select your output and drag and drop onto your desktop as a text file. I know this may not be exactly what you're looking for but hope it helps. joni wilson JDA Software Group, Inc. 480.308.3094 joni.wilson@jda.com -----Original Message----- From: Mike Seiler [mailto:mseiler@ki-inc.com] Sent: Monday, July 17, 2000 11:51 AM To: JAVA400-L@midrange.com Subject: Does anyone have a spool file output to text file example they could share? Hi, Does anyone on the listserv have a code snippet they could share, that outputs a spool file from the AS/400 to a text file on a client machine? I saw the read spool file example on the toolkit pages at IBM, but they don't include one where the file is transformed to a readable text file on the client. Thanks a lot for your time, Mike Click on NeoCon 2000 at our homepage to learn how KI is working smarter. http://www.ki-inc.com +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
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.