Journals for Dummies Part 4 – DSPJRN and Journal Entry Types

By iCluster Tech Tuesday

3 min. read

In our last post we talked about how to find all the objects that are journaled to a particular journal. In this post we will cover how to analyze what is in your journals by journal entry type using the DSPJRN command.

Once you know what journal and file or object you are interested in for problem analysis, the DSPJRN command (Display Journal) is what you need to use to figure out what has happened by transaction. The command will prompt for a journal name and library, and then prompt for a particular file or object. If you just want to see what’s going on for everything, leave these blank and page down two pages until you see Range of Journal Receivers. Here you can specify a range of receivers to display, or a starting and ending time and date.

We are interested in the CUSTOMER file in library PAYROLL, so as shown below we have specified this in the file prompt.

screenshot1

If you hit enter and see the nasty message “No entries converted or received from journal <journal name>"

screenshot2

It means the default value for starting journal receiver of *CURRENT isn’t going to work as there may be nothing in the currently attached receiver for your particular file or object.

Screenshot3

There are 2 ways to fix this problem, the first is to use the WRKJRNA (Work with Journal Attributes) command and option 15 Work with receiver directory, to see all of the receivers in the current chain. It’s possible the current receiver was attached just a few minutes ago and thus there are no relevant transactions.

Screenshot4

Use option 8 on this screen to display the attributes of the currently attached receiver as shown below.

Screenshot5

An easier method is to retrieve your DSPJRN command and specify *CURCHAIN on the starting journal receiver element of Range of journal receivers.

Screenshot 6

The result is shown below:

Screenshot7

Now we can see a number of entries with a combination of codes and entries such as Code F and Entry MS, or Code R and Entry UP. What are these cryptic codes and entries? Use Option 5 for Display entire entry next to the sequence number to see what they mean. For example using 5 next to sequence number 366502 (the F MS entry) we see that Code F is Database file member operation and Entry type MS is Member saved.

Screenshot8

Well this is all fine and dandy if you know what you are looking for, but if you want to figure out who updated the customer file and what it looked like before the update and what it looked like after the update – what code and type do you use?

Here is where the IBM Knowledge Center Journal information finder comes into play. Use this link http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_71/rzaru/rzarufinder.htm and just use the pulldown box on Search by Category to see the valid Code values at IBM i7.1. You can also hit the Go button once you choose a category, to see just the Entry types for that particular code.

Screenshot9

So you can see under Code R Operation on specific record:

Screenshot10

That R UB is an update before-image of a record while R UP is an update after-image of a record.

Just be aware that IBM likes to change the name of its tool and products, so for earlier releases it may be under IBM Infocenter journal code finder or just journal code finder. Google is your friend!

Stay tuned next week to see how this ties into iCluster journal analysis!

Related posts

ERP in the Cloud Era

Patrick Payne
3 min read
In the race to modernize, many organizations face pressure to "move everything to the cloud." But when it comes to ERP systems, [...]

Integrating AI Into EDX/EDI

Malvika Mahadik
1 min read
Electronic digital interchange (EDI) is pushing global communications past the speed of business, all while advancing supply chain management and shaping modern [...]
Modernization

New Era of Mainframe Modernization with IBM z17

Edward Marootian
3 min read

Mainframes are not just alive—they’re thriving.