Restoring spool files from a system save on V5R4 System i

Tags:
AS/400 backup
Spool File save and restore
System i
V5R4
How can I restore spool files from V5R4 entire system save?
ASKED: December 10, 2008  9:27 PM
UPDATED: February 23, 2010  3:05 AM

Answer Wiki

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

Spool files are unfortunately NOT included in an i5 full-system save, so there is no way to restore them. i5/OS commands are available to copy the spool files to physical files that are then picked up by the system save, but this of course needs to be done before the save is run. Various third-party packages are available that facilitate the process of copying spool files to physical files and then restoring them if necessary. We use Save Output Queue (SOQ) to back up our spool files, and it works pretty well.

Hope this helps.

Regards,

Steve B

If you are using BRMS and have saved the spooled files as part of the entire system save then folow the recovery instructions printed with the full system save or consult the BRMS manual. Otherwise Steve is correct that an option 21 ful systems save does not save spooled files.

Lovemyi

Discuss This Question: 7  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
  • DAB
    Spool files can be saved with the GO SAVE option 21. To do this you must first use option 20 to change the default from *NONE to *ALL for the Spooled file data parameter which is on the second page.
    65 pointsBadges:
    report
  • SBatSI
    DAB - Thanks for the update - it appears that my knowledge on this point is dated. At what version of the OS did IBM add the capability to save spool files with a full-system save? When I check out GO SAVE Option 20, it informs me that I can save "...spooled file data for output queues that are saved." What does "output queues that are saved" mean? And back to the original question... how are the saved spool files restored? I assume that the person who originally asked this question wants to restore just the spool files (or some of them)... Regards, Steve B
    415 pointsBadges:
    report
  • DAB
    Hi Steve B. The answer to your question "What does saved output queues that are saved mean?", is just that, output queues that have been saved to the backup media. For example, if you save a library (SAVLIB) that has output queues in it and you specify *ALL in the spooled file data parameter, the data in the spooled files is saved to the backup media.Then when you restore the library (RSTLIB) or any output queue (RSTOBJ) and specify *NEW for the spooled file data those spooled files that do not exist on the system will be restored. This is a key point in that spool files cannot be replaced during a restore. Only non-existant spool files can be restored. The following is from the IBM Info Center web-site and does a pretty good job of explaining the caveots you need to be aware of. "Saving and restoring spooled files You can use the SPLFDTA parameter on the Save Library (SAVLIB), Save Object (SAVOBJ), Restore Library (RSTLIB), and Restore Object (RSTOBJ) CL commands to save and restore spooled files without losing the print fidelity, attributes, or identity of the spooled files. To maintain 100% print fidelity when you restore saved spooled files, you must: Save and restore all external resources within the libraries that they existed in when the spooled file was created. Make sure that the user profile (spooled file owner) exists and has the appropriate authorities to all the external resources required for the spooled file to print, including integrated file system directories, true type font integrated file system files, font resource objects, overlays, form definitions, page definitions, page segments, and embedded object integrated file system files. Make sure that the Resource Allocation Table (RAT) has the same fonts and linked fonts as when the spooled file was created. This is only necessary for those spooled files that use true type linked fonts. Make sure that all of the true type fonts that are used by the spooled files are in the appropriate directories on your system. Make sure that the environment variable QIBM_AFP_RESOURCES_PATH is set to the appropriate path for those spooled files that use embedded objects but were not directory qualified. Restore all embedded objects used by spooled files into the same directories that they were in when the files were created. When a spooled file is in the process of being saved or restored, another restore or save operation will be blocked. The blocked operation might fail to save or restore that spooled file. A diagnostic message will be issued when this occurs. When a spooled file is restored, it is reattached to the original job if the original job still exists on the system. If the original job does not exist, then the spooled file is restored in a detached state. If the spooled file is restored in a detached state, it is possible to have more then one spooled file with the same fully qualified job name, spooled file name, and spooled file number. Under these conditions, access to the restored spooled file requires the user or application to include the job system name and spooled file creation date. This enables the operating system to select the correct spooled file. The order of spooled files that you restore is determined mainly by attributes such as the status of the file and is not necessarily the order in which you restore them. For more information, see Order of spooled files on an output queue. For information about the procedures that were used to save and restore spooled files before V5R4 of i5/OSĀ®, see Save spooled files in the Systems management topic collection." To get to the IBM site: Then select V5R4 and enter "restore spool file" in the search field. I hope this helps.
    65 pointsBadges:
    report
  • DAB
    In the previous entry I tried to use the "link" code but it did not appear The URL for the IBM Info Center is: http://publib.boulder.ibm.com/iseries/ Then select V5R4, etc.
    65 pointsBadges:
    report
  • SBatSI
    DAB - Thanks for the very thorough answer. It is appreciated. Regards, Steve B
    415 pointsBadges:
    report
  • LingPing
    Fantastic
    20 pointsBadges:
    report
  • LingPing
    What is the command to only restore a single spool file from a particular data of batch job?
    20 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