Ask the Expert

Pulling the spooled files to a PC

We print backups of some spooled files for emergencies where the AS/400 will not be available. Instead of printing (and wasting) backups, we would like to pull the spooled files to a PC and if needed then we can print them on the PC printer (LaserJet 4000 TN). When we pull the spooled files to the PC as a text file and try to print the files the page breaks are not right. Is there a way to change the spooled file so that the page breaks are correct?


You will have to modify your process to copy the spooled file to a database file using CPYSPLF CTLCHAR(*PRTCTL). This will place four characters in front of every record. The first three characters are the line number to print, and the next line is the skip entry. This is a skip before printing value. You can then convert the database file to a text file and add in the lines or printer control characters to skip to the correct lines. There is more information in the CL Reference and in most of the language books. If you need a link to the Information Center or the Online Library, you can find them here.


This was first published in August 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

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
Sort by: OldestNewest

Forgot Password?

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

Your password has been sent to: