We have spent a lot of Fridays this summer and fall finding the quiet gaps in people’s save strategies. Hopefully, you now have a better save strategy. Here is one more that catches good #IBMi shops off guard: your spooled files.
Picture the recovery. The disaster is behind you, you restore your libraries from a clean, tested save, and the data all comes back. And then someone goes looking for the reports. The month-end statements still sitting in an output queue. The invoices that had not printed yet. The compliance reports somebody was keeping in spool on purpose. And they are gone, because a standard SAVLIB does not save spooled files unless you tell it to.
That last part surprises people every time. Those reports feel like they are part of the library, sitting right there in the output queue, but the save walked right past them. The fix is to explicitly include them:
SAVLIB LIB(YOURLIB) DEV(TAP01)
SPLFDTA(*ALL)
With SPLFDTA(*ALL), the spooled file data in that library’s output queues is saved too, and you restore it with the matching parameter on RSTLIB. If you run GO SAVE option 21, there is a prompt for spooled files as well, and it is worth knowing whether yours is set to save them. It will make the backup longer, but more complete.
Here is the thought to carry into the weekend. A backup that brings back your data but not your spool files is only part of a recovery, and the part that is missing is often the part an auditor or a customer asks for first. Your recovery is only as good as your backup, and your backup is only as complete as what you actually told it to save.
Go check whether your spooled files are in the plan. Then close the laptop and have a great weekend, you have earned it.
#IBMi #Power #ibmChampion
Originally posted on LinkedIn. Join the conversation there.
Leave a Reply