× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Tim,

Yes you can do that. Here's a string of commands that I entered
interactively to demonstrate how to recreate a spooled file. Of course you
can use this example to build a more generalized utility program. Don't
forget the CTLCHAR parameters which will preserve the line spacing and page
ejects.

Clayton

crtpf qtemp/splf rcdlen(133) /* create a work physical file        */
                              /* 1st position is for *FCFC character*/
 File SPLF created in library QTEMP.
 Member SPLF added to file SPLF in QTEMP.
dspsyssts output(*print)     /* create a spooled file to work with */
CPYSPLF FILE(QPDSPSTS) TOFILE(QTEMP/SPLF) SPLNBR(*LAST)
   CTLCHAR(*FCFC)             /* copy splf into work file           */
 16 records copied to file SPLF in QTEMP.
OVRPRTF FILE(SPLFNEW) TOFILE(QPRINT)
   PAGESIZE(66 132) LPI(6) OVRFLW(60) CTLCHAR(*FCFC)
   PRTTXT('This is the new spooled file')
                              /* specify new spooled file overrides */
cpyf qtemp/splf splfnew      /* create the new spooled file        */
File SPLFNEW overridden to QPRINT in *LIBL.
16 records copied from member SPLF.



Hi all,
I have a need to do a CPYSPLF of a spool file from an OUTQ to a flat file
THEN
change something on the report and RESTORE it to the spool file OUTQ for
printing.
And no I am not an "Enron" employee either.
Ok... I will wait patiently for the chorus of "You can't do that you
knucklehead." statements that may be hurled my way.
Tim  :-)
--

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.