can we journal the Library?
Page 1 of 1
can we journal the Library?
Yes. From V6R1 onwards this is doable.
The STRJRNLIB command lets you specify the library you want journaled (via the LIB parameter), the name and library of the journal to use (via the JRN parameter), and the inheritance rules to use to determine whether a new object should be journaled (via the INHRULES parameter). The INHRULES parameter contains five fields, and multiple rules may be specified. The fields for INHRULES are the object type, operation, rule action, images and omit journal entry. Each field has valid-values rules:
Valid values for the object type field are *FILE, *DTAARA, *DTAQ and *ALL.
Valid values for the operation field are *ALLOPR, *CREATE, *MOVE, *RESTORE and *RSTOVRJRN.
If a user wanted to journal all of the newly created files in library MYLIB and any newly created, restored or copied, but not moved, data areas in library MYLIB to journal MYJRNLIB,MYJRN, the following command would do the job:
STRJRNLIB LIB(MYLIBC) JRN(MYLIBC/JRN)
INHRULES((*FILE *ALLOPR *INCLUDE *BOTH *OPNCLOSYN)
(*DTAARA *CREATE *INCLUDE *OBJDFT *OBJDFT))
The STRJRNLIB command lets you specify the library you want journaled (via the LIB parameter), the name and library of the journal to use (via the JRN parameter), and the inheritance rules to use to determine whether a new object should be journaled (via the INHRULES parameter). The INHRULES parameter contains five fields, and multiple rules may be specified. The fields for INHRULES are the object type, operation, rule action, images and omit journal entry. Each field has valid-values rules:
Valid values for the object type field are *FILE, *DTAARA, *DTAQ and *ALL.
Valid values for the operation field are *ALLOPR, *CREATE, *MOVE, *RESTORE and *RSTOVRJRN.
If a user wanted to journal all of the newly created files in library MYLIB and any newly created, restored or copied, but not moved, data areas in library MYLIB to journal MYJRNLIB,MYJRN, the following command would do the job:
STRJRNLIB LIB(MYLIBC) JRN(MYLIBC/JRN)
INHRULES((*FILE *ALLOPR *INCLUDE *BOTH *OPNCLOSYN)
(*DTAARA *CREATE *INCLUDE *OBJDFT *OBJDFT))
Similar topics
» Set the production library in the Library List
» Library in the Library List
» Library List
» Add library - System Part
» Can we journal the files are in IFS?
» Library in the Library List
» Library List
» Add library - System Part
» Can we journal the files are in IFS?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|