Troubleshooting
Problem
This document describes how an IFS directory and its sub-directories or a library can be omitted during a GO SAVE 21 System Save.
Resolving The Problem
This document describes how an IFS directory and its sub-directories or a library can be omitted during a GO SAVE 21 System Save.
Various methods are provided below on how to omit directories or libraries from being saved during a full system save:
Various methods are provided below on how to omit directories or libraries from being saved during a full system save:
| o | Use the CHGATR command to set the Allow Save parameter on these directories and objects to *NO. When Allow Save *NO is specified, these objects will not be saved. An example of the command follows: CHGATR OBJ('/Path/Directory') ATR(*ALWSAV) VALUE(*NO) SUBTREE(*ALL) To save the objects, ensure that the attribute for Allow Save is *YES. An example of the command to change this attribute is as follows: CHGATR OBJ('/Path/Directory') ATR(*ALWSAV) VALUE(*YES) SUBTREE(*ALL) If the directory contains a very large number of objects, the CHGATR command may be long running and should be submitted to batch. Note: This method can also be used if wanting to omit directories from being saved during a GO BACKUP or OA (Operational Assistant) backup. |
| o | Edit the QMNSAVE CL program in library QSYS called by the GO SAVE 21 option. Change the SAV or SAVLIB command within this CL program to Omit the IFS directories that are not to be saved. You can issue a separate SAV or SAVLIB command for the omitted objects, should you decide to back them up. Refer to Technote N1017315, Changing GO SAVE Option 21 SAVLIB Parameter ACCPTH(*NO) for instructions on modifying the QMNSAVE CL program. After running the RTVCLSRC for QSYS/QMNSAVE, the omit must be added in two places. The changes which need to be added are in BOLD. LIBXX is the library name you would like to omit. 0104.00 QSYS/CHGVAR VAR(&SAVCMD) VALUE('*SYSTEM/SAVLIB LIB(*NONSYS) - 0105.00 CLEAR(' *CAT &CLEAR *CAT ') DEV(' *CAT &DEV *CAT ') TGTRLS(*CURRENT) - 0106.00 ASPDEV(*SYSBAS) SPLFDTA(' *CAT &SPLFDTA *CAT ') - 0107.00 OMITLIB(LIBXX) ENDOPT(*LEAVE) ACCPTH(*YES)') -AND- 0110.00 QSYS/CHGVAR VAR(&SAVCMD) VALUE('? *NLVLIBL/SAVLIB ?*LIB(*NONSYS)- 0111.00 ??CLEAR(' *CAT &CLEAR *CAT ') ?*DEV(' *CAT &DEV *CAT ') - 0112.00 ?*TGTRLS(*CURRENT) ??ASPDEV(*SYSBAS) ??SPLFDTA(' *CAT &SPLFDTA - 0113.00 *CAT ') ??OMITLIB(LIBXX) ??ENDOPT(*LEAVE) ??ACCPTH(*YES)') Then re-compile the program. Note: It is not recommended to modify IBM-supplied CL programs. If this option is pursued, retain a copy of the original IBM program. Also, this program will be overwritten on a release upgrade and have to be changed again. |
| o | Prompt for commands during the GO SAVE 21. When the SAVLIB or SAV command is prompted, you are able to specify the objects you would like to omit. |
| o | Create your own CL program that will omit the objects that you do not want to be saved. |
[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z000000cwp6AAA","label":"Save Restore"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]
Historical Number
497366262
Was this topic helpful?
Document Information
Modified date:
11 November 2024
UID
nas8N1018706