ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

journal entries

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • journal entries

    hi can anybody tell me how to get the journal entries in human readable form. My requirement is that i want to analyse the jouran to know what is changed in a file and wo has done it.
    When I try to use dspjrn command it give the result in some coded form. cam anybody tell me how to analyse that.

  • #2
    Re: journal entries

    As far as I am aware, you can only show the journal data in Char or Hex format.

    The easiest way to find what has changed is to use CMPJRNIMG for the file and this will generate a listing which will highlight any changes, along with the details of which job/user has changed them. This can display output in Hex or Char as well.

    You will need to compare the postion of the data changed with the file layout of your file

    Mike
    You don't stop playing games because you get old, You get old because you stop playing games!

    Comment


    • #3
      Re: journal entries

      First if you have DBU tool you can use DBUJRN

      steps to read journal
      Code:
      Use DspJrn to display the record entries you want from the 
      journal to an outfile 
      
      Build a DDS source member based on the DspJrn outfile 
      
      Build a DDS source member based on your original file 
      
      Paste the second DDS member on top of the first, but 
      replace field JOESD from the DspJrn outfile with the columns 
      from your original file 
      
      Create a new file using this DDS 
      
      Use the Copy File (CPYF) command with the Format 
      Option *NOCHK to copy from the DspJrn outfile to 
      the new file
      for all journal entry types and codes
      look here

      All my answers were extracted from the "Big Dummy's Guide to the As400"
      and I take no responsibility for any of them.

      www.code400.com

      Comment

      Working...
      X