|
By "free", I assume you mean it wont cost you any money. Vs, some trick to make it happen with no programming effort. The first method is: CRTPF QTEMP/TEMP RCDLEN(132) / OVRDBF PrintFileName TOFILE(QTEMP/TEMP) LVLCHK(*NO) /* Note: This is ovrDBF, not ovrPRTF */ And QTEMP/TEMP will have all of your data. However, you will loose your page breaks and line feeds. And if the print file is internally described, you probably wont come even close to getting what you want. The second method is: CRTPF QTEMP/TEMP RCDLEN(134) /* 2 larger than print width */ OVRPRTF PrintFileName HOLD(*YES) Call pgmToCreatePrint CPYSPLF PrintFileName TOFILE(QTEMP/TEMP) CTLCHAR(*FCFC) ENDSPLF PrintFileName SPLNBR(*LAST). QTEMP/TEMP will now have all the data you need. You can write a pgm that will translate the FCFC formatted info into blank record lengths, HTML, etc to suite your purposes. This most likely would be a fairly easy pgm...depending on the final form you want. Bob -----Original Message----- From: owner-midrange-l@midrange.com [mailto:owner-midrange-l@midrange.com]On Behalf Of Matt Patee Sent: Wednesday, September 06, 2000 10:56 AM To: MIDRANGE-L@midrange.com Subject: Printing to a file: Is there a "free" way to print directly to a file at the spooler level? For example, I generate a spool file and it goes into my default outq, the outq in turn formats the file and pushes it to a physical either on the IFS. Any help would be appreciated. -Matt +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.