Posted: Tue Jun 04, 2002 10:32 am Post subject: Automating AS/400 journal management
Novice
Joined: 18 Mar 2002 Posts: 18 Location: Jim Solberg
Hi...
I am wondering if anybody has ever programatically automated AS/400 journal management. By that, I mean is there an easy way to determine which journal receivers are not needed anymore and deleting them without human intervention?
Any thoughts?
Thanks in advance... _________________ Jim Solberg
Senior System Architect - Technology Services
Conseco Finance Corporation
Joined: 18 Mar 2002 Posts: 18 Location: Jim Solberg
To all:
Here is a solution (from IBM Redbook "Using MQSeries on the AS/400):
Journal receivers will grow until all disk space is used up, if you don't
manage them.
A practical way to handle receiver management is to create and attach a
new receiver every day just before a backup of the files it is serving. You
do it by issuing the command:
CHGJRN JRN(MYJRN/JRN) JRNRCV(*GEN)
This command creates a new receiver, attaches it and detaches the old one.
When the file is saved an entry is made in the new receiver.
You may back up the receivers on tape and then delete them. After the file
is backed up you can delete the receivers from before the file backup, as
they are not necessary any more. A simple set of commands shows this:
CHGJRN JRN(MYJRN/JRN) JRNRCV(*GEN)
SAVLIB LIB(MYAPP) DEV(TAP01)
SAVLIB LIB(MYJRN) DEV(TAP01)
DLTJRNRCV JRNRCV(MYJRN/RCV)
The success is based on the fact that an attached receiver cannot be
deleted (if programmed in a CL program you must monitor for such
messages).
Regards, _________________ Jim Solberg
Senior System Architect - Technology Services
Conseco Finance Corporation
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum