The STRJRNLIB Command — Start Journaling All Files in a Library

Carsten Flensburg’s newest utility is designed to help you start journaling your files and other objects in a selected library.

The command STRJRNLIB (Start Journaling Library) lets you overcome the shortcomings of IBM’s commands STRJRNPF and STRJRNOBJ, which let you only select one object at a time. This new command STRJRNLIB will let you start journaling all physical files in a library with a single command. As an added feature, you can also start journaling the other data objects of Data Areas and Data Queues. You can select if you want before and after images, and if you want to record Opens and Closes.

In the next issue, Carsten will present the ENDJRNLIB command as the compliment to the command presented here.

Download the save file containing the source code.

Read the entire article

Question and Answer Regarding the STRJRNLIB Command

Q. The tip in the last issue for Journaling all files in a library seems like a long way to go for doing such a simple task. The whole thing could be done in a Control Language Program. It’s probably even easier on OS/400 V5R3 with the enhancements to CL. Here’s a simple program shell (see code following link below).

— David Bauer

A. You’re of course right that there’s more than one solution to accomplish this task. And your approach is just as valid as the one offered in the newsletter.

Depending on the number of times you’re going to perform this task — and who is going to do it — it might be worth it to build a command.

The STRJRNLIB command offers the ability to set the IMAGES and OMTJRNE parameters as required in each specific situation, checks if the object is already journaled, is capable of starting to journal using both the STRJRNPF and STRJRNOBJ command dependent on object type, and documents the command’s function and parameters in the attached help panel group.

In some cases, this might be — as you point out — overkill. However, in other cases, it may be well worth the extra effort, because it’s something you have to do over and over again with changing parameters.

Read the entire article

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s