IBM i Global

 View Only
  • 1.  how to journal the LF files?

    Posted Thu March 14, 2024 01:07 AM

    Hello, how to journal the LF files? I read the manual and it says that you must journal the PF so that the system automatically does it, I did it and it didn't happen. Do I have to do something extra? Did I miss something? And backwards. if i remove the journal. When is the LF journal removed? regards



    ------------------------------
    Miguel Peralta
    ------------------------------


  • 2.  RE: how to journal the LF files?

    Posted Thu March 14, 2024 05:46 AM
    Edited by Virgile VATIN Thu March 14, 2024 06:01 AM

    Hi Miguel,

    Yes as it says in the manuel if logical file exist on a physical, it becomes part of the journaling. As you know Logical file can't be exist if the PF file doesn't,  for simplify logical file is "just a view of the physical file.

    When you apply journal receiver on PF file, logical file are automaticaly index by the system you can see it in a wrkactjob. It can take some time if the PF file as a lot of record. to remove journal you have to configure journaling with *BOTH parameter on object (strjrnobj) or if objet are already jrn you can use chgjrnobj.

    What are you doing on object to say it doesn't apply on logical view ? 

    (edit : you can see if object is journalise when you do a wrkobj option 8 on the physical and logical file)

    Regards

    Virgile 



    ------------------------------
    Virgile VATIN
    ------------------------------



  • 3.  RE: how to journal the LF files?

    IBM Champion
    Posted Thu March 14, 2024 06:26 PM

    The only purpose of journaling a LF is to avoid an index rebuild if the system abnormally ends. You can't do anything else with this information.

    You can manually start journaling on a LF with STRJRNAP but it's generally better to let the system journal the LF as needed via SMAPP (EDTRCYAP).

    As Virgile said, you journal the PF, every change to the data in the PF (directly or via a LF) will be in the journal.

    The actual journal information are in the journal receivers (*JRNRCV objects), data is removed when the journal receiver is deleted.

    Regards,

    Damien



    ------------------------------
    Damien Ferrand
    ------------------------------



  • 4.  RE: how to journal the LF files?

    IBM Champion
    Posted Fri March 15, 2024 03:07 AM

    Hi *ALL,

    "Starting in 6.1, the operating system automatically journals logical files. "

    https://www.ibm.com/support/pages/why-my-logical-file-journaled



    ------------------------------
    Fernando Plaza
    IBM i System Administrator
    CD INVEST
    MADRID
    ------------------------------