PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

Join the forum, it's quick and easy

PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).
PMS Information Systems
Would you like to react to this message? Create an account in a few clicks or log in to continue.

can we journal the Library?

Go down

can we journal the Library? Empty can we journal the Library?

Post  maran Mon May 13, 2013 12:08 pm

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))
maran
maran
Admin

Posts : 442
Join date : 2009-07-24

https://pmsinformationsystem.forumotion.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum