Restoring Spooled File Data After a System Restore
3 posters
Page 1 of 1
Restoring Spooled File Data After a System Restore
How to restore spooled files data after a System restore?
Restoring Spool File data
Spooled files will be saved in outq. System created outq will be saved in the library QGPL & QUSRSYS. User created outq will be saved in the user library. So We can the restore the spooled file data by the command RSTOBJ OBJ(*ALL) SAVLIB(QGPL QUSRSYS), This command will restore the spooled file data. Since we are taking entire system backup, we need to restore QGPL & QUSRSYS library by the command RSTLIB SAVLIB(QGPL QUSRSYS), before restoring the objects from that library.
Please tell me, whether the above answer is correct or not.
Regards,
Sivakumar
Please tell me, whether the above answer is correct or not.
Regards,
Sivakumar
sivakumar- Posts : 174
Join date : 2009-07-27
Age : 37
Location : Chennai
Re: Restoring Spooled File Data After a System Restore
To be more specific, we have an option to restore the spool file data while restoring the OUTQ objects . When SPLFDTA(Spooled file data) parameter in RSTLIB/RSTOBJ specified to *NEW , for each output queue that is restored, spooled filedata and its attributes that was saved with the output queue is restored,if it does not already exist on the system.
RSTOBJ OBJ(*ALL) SAVLIB(XXXXX) DEV(XXXXX) OBJTYPE(*OUTQ) SPLFDTA(*NEW)
RSTLIB SAVLIB(XXXXX) DEV(XXXXX) SPLFDTA(*NEW)
If you are using a BRMS tool, you can also use WRKSPLFBRM to locate your spool file data associated with all OUTQ's within a library and restore it them by individual or all at a time . The command is very flexible and you can restore spool files from different ASP's also.
Of course the spool file data restore is only possible when your save covering the spool file data and attributes through an option SPLFDTA(*ALL) within commands SAVOBJ/SAVLIB.
SAVOBJ OBJ(*ALL) LIB(XXXXX) DEV(XXXXX) OBJTYPE(*OUTQ) SPLFDTA(*ALL)
Also , there are few system created OUTQ's or IBM product created outq's which fall out of QGPL and QUSRSYS. Example: QSRVMON OUTQ in QSERVICE system library
RSTOBJ OBJ(*ALL) SAVLIB(XXXXX) DEV(XXXXX) OBJTYPE(*OUTQ) SPLFDTA(*NEW)
RSTLIB SAVLIB(XXXXX) DEV(XXXXX) SPLFDTA(*NEW)
If you are using a BRMS tool, you can also use WRKSPLFBRM to locate your spool file data associated with all OUTQ's within a library and restore it them by individual or all at a time . The command is very flexible and you can restore spool files from different ASP's also.
Of course the spool file data restore is only possible when your save covering the spool file data and attributes through an option SPLFDTA(*ALL) within commands SAVOBJ/SAVLIB.
SAVOBJ OBJ(*ALL) LIB(XXXXX) DEV(XXXXX) OBJTYPE(*OUTQ) SPLFDTA(*ALL)
Also , there are few system created OUTQ's or IBM product created outq's which fall out of QGPL and QUSRSYS. Example: QSRVMON OUTQ in QSERVICE system library
hi2nani2- Posts : 3
Join date : 2012-10-26
Similar topics
» Sending Spooled Files To Another System
» How to write Data to Variable File using RPG ?
» How to compile the RPG program when declared file does not exist on the system?
» Backing up and restoring IBM i (AS/400) objects via a PC
» What are the reasons a logical file may be "dropped" during the File definition load process?
» How to write Data to Variable File using RPG ?
» How to compile the RPG program when declared file does not exist on the system?
» Backing up and restoring IBM i (AS/400) objects via a PC
» What are the reasons a logical file may be "dropped" during the File definition load process?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum