Copying or cloning spool files

Tags:
AS/400
Spool files
Spool files copy
We have spool files that were created with overlays. If we try to duplicate the spool files (even on the same system), the copied spool files lose track of where the overlays came from. Is there a way to clone/copy such spool files without this problem?

Answer Wiki

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

How are you duplicating the spooled files? It’s likely that whatever method you use, the overlay information is not copied with the rest of the attributes.

You would, I suspect, have to use a CHGSPLFA command to add the overlay information back into the copy (FRONTOVL parameter).

You may be able to automate this by using WRKSPLFA on the original spooled file (output to a file), then read that file and get the overlay information, and then apply it to the copy using CHGSPLFA. However, I have not checked whether the file output from WRKSPLFA actually would contain the overlay information (we don’t use overlays here).

Regards,

Sloopy

will add this. I use page segments and overlays all the time. I have found. When you copy a spool file that has a overlay and restore it to another machine. You must have the overlay in the same library on the new machine or else when you print the form. You will not get the overlay. If you move it to a new output queue on the same machine. You must still have the library that had the original overlay in it. Available when you print it. I hope this helps.

ALF

Discuss This Question: 4  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
  • Alf
    I will add this. I use page segments and overlays all the time. I have found. When you copy a spool file that has a overlay and restore it to another machine. You must have the overlay in the same library on the new machine or else when you print the form. You will not get the overlay. If you move it to a new output queue on the same machine. You must still have the library that had the original overlay in it. Available when you print it. I hope this helps.
    45 pointsBadges:
    report
  • Globe user
    Sloopy, We hard-code the overlay name in the printer file DDS - one overlay to a printer file format. When we need the overlay, we just write the format to the printer file. We actually have more than one overlay in a spool file, so we don't use the front and back overlays.
    10 pointsBadges:
    report
  • TSCHMITZ
    Hi Alf, i have a piece of code (RPGILE SRVPGM) that duplicates spools using API's. Only requirements, due the actual release of API's, you must have an OS realease near mine (V5R4). The goal of this program is to duplicate a spool file an patch some contents (I use it to insert COPY 1 to COPY 3) on the copied spool. I assume it's ok for overlay copy, but it should be tested. If you are interested, tell me (i need your email). This is a bit sophisticated but i think understandable. Thierry.
    470 pointsBadges:
    report
  • Gilly400
    Hi, Doesn't it keep these attributes if you do a SNDNETSPLF with DTAFMT(*ALLDATA)? Regards, Martin Gilbert.
    23,730 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