Default Journaling in V5R4

45 pts.
Tags:
AS/400 journaling
QDFTJRN
V5R4
I created the default journal data area(QDFTJRN) with all the appropriate upper case entries in my test library and wondered what I needed to do next. I've made changes to several files and added and deleted records in several files but nothing shows in my journal. What starts the "automatic" journal recording?
ASKED: May 1, 2008  4:14 PM
UPDATED: June 9, 2008  11:27 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

The following sequence of commands worked OK for me:

<pre>
CRTLIB JRNTEST
CRTDTAARA DTAARA(JRNTEST/QDFTJRN) TYPE(*CHAR) LEN(100)
CHGDTAARA DTAARA(JRNTEST/QDFTJRN) VALUE(‘JRNTEST JRN *FILE *ALLOPR’)
CRTJRNRCV JRNRCV(JRNTEST/JRNRCV)
CRTJRN JRN(JRNTEST/JRN) JRNRCV(JRNTEST/JRNRCV)
CRTPF FILE(JRNTEST/TESTFILE) RCDLEN(30)
STRDFU and add a record to JRNTEST/TESTFILE using option 5
DSPJRN JRN(JRNTEST/JRN)
</pre>

The DSPJRN command showed the following entries:

<pre>
Sequence Code Type Object Library Job Time
1 J PR QPADEV0001 4:14:40
2 J XP TESTFILE JRNTEST QPADEV0001 4:14:55
3 D CT TESTFILE JRNTEST QPADEV0001 4:14:55
4 D JF TESTFILE JRNTEST QPADEV0001 4:14:55
5 F JM TESTFILE JRNTEST QPADEV0001 4:14:55
6 D MA TESTFILE JRNTEST QPADEV0001 4:14:55
7 F MC TESTFILE JRNTEST QPADEV0001 4:14:55
8 R PT TESTFILE JRNTEST QPADEV0001 4:15:12
</pre>

with entry 8 showing my new record:

<pre>
Object . . . . . . . : TESTFILE Library . . . . . . : JRNTEST
Member . . . . . . . : TESTFILE
Incomplete data . . : No Minimized entry data : *NONE
Sequence . . . . . . : 8
Code . . . . . . . . : R – Operation on specific record
Type . . . . . . . . : PT – Record added

Entry specific data
Column *…+….1….+….2….+….3….+….4….+….5
00001 ‘Make it? ‘
</pre>

I did nothing specific to starting the implicit journaling so you may want to double check your actions with the sequence of commands I used above.

I hope this helps,
Bruce Vining
<a href=”http://www.brucevining.com/”>http://www.brucevining.com/</a>

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Jlunger1
    The fact that the library already had files in it was not part of the discussion. When I add NEW files everything appears to work just like your example. What a dumb *ss to think it would work with existing files. I'm now pretty sure that the only way to get it to work for all existing files is to back it up and restore it after creating the QDFTJRN.
    45 pointsBadges:
    report
  • bvining
    From the Information Center article Automatically starting journaling: Using a data area named QDFTJRN, you can automatically start journaling when a non-integrated file system object (data area, data queue, or file) is created, moved, or restored into the library... (bolding added by me) Bruce Vining http://www.brucevining.com/
    6,240 pointsBadges:
    report
  • Jlunger1
    I think it would have been helpful if that statement was followed with a clarification that "If the file/object currently exists in the library at the time QDFTJRN is created , no journal action is taken." Just a thought.
    45 pointsBadges:
    report
  • bvining
    Total agreement. I would suggest sending in a reader comment form on the article making just such a suggestion.
    6,240 pointsBadges:
    report
  • Gilly400
    Hi, So I guess moving the files to a temporary library and moving them back will start the journalling for them ? Regards, Martin Gilbert.
    23,730 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following