How to analize extracted data from DSPJRN journaled Database files in IBM i?. Output extracted from journal with command DSPJRN is composed of metadata and a block of data in native format (a stream of text and binary data). Even though some info could be extracted, I suppose there are some rules to read them, but out of my knowledge. Not seen info in documents, yet. Anyone working with this data?
analyzing data from DSPJRN journaled files in IBM i
1.8k Views Asked by Jorge Ubeda At
1
There are 1 best solutions below
Related Questions in IBM-MIDRANGE
- Restoring a WRKLNK file
- DB2/400 SQL subqueries
- SQL - Select only records where field contains either a given string explicitly OR or a range of strings within which given string falls
- Using SQL to view AS400 Journal data - Entry_Data in particular
- IBM Rational - indentation available in Rational 9.6.0.6?
- How to get a list of programs that uses a particular command in AS400
- DB2: Query Memberfile of a Table with SQL
- Using the routine CSNBOWH on IBM I - MD5
- Doing an external webservice call from rpgle program
- Mandatory field even if not the first field
- Create command similar to WRKLIBPDM
- RPG - how do we return a parameter using C-style "Return <Value>" syntax
- Getting data from AS400/IBM i through ODBC to excel
- Unable to monitor message inside SELECT statement
- Error java.net.SocketException: Socket is closed when closing AS400 Secure RPC session
Related Questions in JOURNALING
- Nerdtree: changing the info displayed in the tree
- What is the advantage of journaling multiple transactions?
- How are journaled data blocks flushed to their actual locations on storage device?
- I want to take a screen shot of a chart from trading view at my order fill times which are in an excel sheet, how can I automate this process
- How do you send a Journal to another IBM I?
- How to use AskAdjacentFacet function in NXOpen?
- In Windows, can I see what apps were open on background or foreground in the past?
- No deleted entries in journal receivers?
- Ordered mode behavior in journaling file system
- Can the data=journal mode of EXT4 avoid user data loss?
- Journal/write-ahead-log technology for Java
- Is it possible to use GitJournal on a Mac?
- How to recover a critical python job from system failure
- After UPDATE trigger - NEW and OLD column alias
- Find Journaling errors in Powershell?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Documentation for the journal entry information
The meta data is easy, since it's in standard columns.
It's the variable length entry specific data that's problematic.
The basics aren't to difficult to deal with, assuming no nullable columns in the file and that the journal is configure not to minimize data. Then you can simply build a table with the metadata columns + the columns from the journaled table and simply copy the data to it; like so:
DSPJRN JRN(MYJRN) FILE((MYPF)) ENTTYP(*RCD) OUTPUT(*OUTFILE) OUTFILFMT(*TYPE1) OUTFILE(JRNOUT) ENTDTALEN(*CALC)CREATE TABLE MYJRNDATA as (SELECT <meta columns>,<PF columns> FROM JRNOUT, MYPF) with no dataCPYF FROMFILE(JRNOUT) TOFILE(MYJRNDATA) FMTOPT(*NOCHK)to copy the journal data to it.Moving beyond the basics get complicated.
There are a few commercial tools that you can use, I use the DBUJRN command that's part of Prodata's DBU utility.
There's also at least one open source tool, Export Journal Entries that would be where I'd start if I wanted to roll my own.