You can use save-while-active feature to backup files that are currently in use, by specifying either the :
- SAVACT(*LIB),
- SAVACT(*SYNCLIB), or
- SAVACT(*SYSDFN)
parameter on your SAVOBJ or SAVLIB command.
From the IBM Information Center SAVLIB command documentation: http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/cl/savlib.htm
Save active (SAVACT)
Specifies whether an object can be updated while it is being saved.
Note: If your system is in a restricted state and the SAVACT parameter is specified, the save operation is performed as if SAVACT(*NO) was specified.
- *NO Objects that are in use are not saved. Objects cannot be updated while being saved.
- *LIB Objects in a library can be saved while they are in use by another job. All of the objects in a library reach a checkpoint together and are saved in a consistent state in relationship to each other.
- *SYNCLIB Objects in a library can be saved while they are in use by another job. All of the objects and all of the libraries in the save operation reach a checkpoint together and are saved in a consistent state in relationship to each other.
- Note: If you specify this value and you are saving many libraries, it can take a long time to reach a checkpoint for all of the objects and libraries in the save operation.
- *SYSDFN Objects in a library can be saved while they are in use by another job. Objects in a library may reach checkpoints at different times and may not be in a consistent state in relationship to each other.
- Gary Patterson