copy physical file to printer

25 pts.
Tags:
Development
Servers
I have a job stream that creates 20 spool files. I need to consolidate them and create one spool file. Is there some way to copy the spool files to disk and then print (formatted like the original reports) the reports.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Simple answer – yes.

However – you need to supply OS, platform information, printer details etc if you want a sensible answer with instructions.

Basically if you can print to a file then you can send/copy that file to the printer port as many times as you want.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Tomatsapsearch
    Hi, you could download the spool to your local disk as PDF. Depending on the content of the spool it will look loke your original print. The pdf-files could be merged using adobe tools. regards
    0 pointsBadges:
    report
  • TheQuigs
    Here's a method you can use if you're on OS/400. It will retain forms advance, but not special formatting like *AFPDS. You can use CPYSPLF to copy the spoolfile records to a physical file. Make certain the physical file is at least one character larger than the width of the report. Then format CPYSPLF as follows: CPYSPLF FILE(printerfilename) TOFILE(libraryname/physicalfilename) JOB(number/username/jobname) CTLCHAR(*FCFC) On the first spoolfile add the option MBROPT(*REPLACE). Then on the subsequent spoolfiles use MBROPT(*ADD). Next either specify a printer file which has CTLCHAR(*FCFC) or execute an OVRPRTF with CTLCHAR(*FCFC). Then you can CPYF FROMFILE(libraryname/physicalfilename) TOFILE(printerfilename). NOTE: The printer file will determine the font, CPI, and LPI of the final printout. Either use a suitable printerfile or execute an OVRPRTF command with the appropriate characteristics.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following