Journal in AS/400

40 pts.
Tags:
AS/400 journaling
AS400 physical file
Physical Files
hi, please help. can someone tell me how to journal my PF file?

Software/Hardware used:
AS/400

Answer Wiki

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

Do it step by step.

Create Journal Receiver (CRTJRNRCV)

Type choices, press Enter.

Journal receiver . . . . . . . . Name
Library . . . . . . . . . . . *CURLIB Name, *CURLIB
ASP number . . . . . . . . . . . *LIBASP 1-32, *LIBASP
Journal receiver threshold . . . 1500000 1-1000000000, *NONE
Text ‘description’ . . . . . . . *BLANK

Create Journal (CRTJRN)

Type choices, press Enter.

Journal . . . . . . . . . . . . Name
Library . . . . . . . . . . . *CURLIB Name, *CURLIB
Journal receiver . . . . . . . . Name
Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB

*LIBL
ASP number . . . . . . . . . . . *LIBASP 1-32, *LIBASP
Journal message queue . . . . . QSYSOPR Name
Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB
Manage receivers . . . . . . . . *SYSTEM *SYSTEM, *USER
Delete receivers . . . . . . . . *NO *NO, *YES
Receiver size options . . . . . *SYSDFT *SYSDFT, *NONE, *RMVINTENT
+ for more values
Minimize entry specific data . . *NONE *NONE, *FILE, *FLDBDY…

Journal caching . . . . . . . . *NO *NO, *YES
More
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys

Start Journal Physical File (STRJRNPF)

Type choices, press Enter.

Physical file to be journaled . Name
Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB
+ for more values
*LIBL
Journal . . . . . . . . . . . . Name
Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB
Record images . . . . . . . . . *AFTER *AFTER, *BOTH
Journal entries to be omitted . *NONE *NONE, *OPNCLO

Check the rcv like WRKJRNRCV *ALL/*ALL
and press 5

Display Journal Receiver Attributes

Receiver . . . . . . . : QSQJRN0020 Library . . . . . . . : ASN

Journal . . . . . . . : QSQJRN Library . . . . . . . : ASN
Threshold (K) . . . . : 100000 Size (K) . . . . . . . : 148
Attach date . . . . . : 09/01/11 Attach time . . . . . : 14:20:03
Detach date . . . . . : 00/00/00 Detach time . . . . . : 00:00:00
Save date . . . . . . : 27/03/11 Save time . . . . . . : 23:48:08
Text . . . . . . . . . : *BLANK

Auxiliary storage pool . . . . . . . . . . . . . . : 1
Status . . . . . . . . . . . . . . . . . . . . . . : ATTACHED
Number of entries . . . . . . . . . . . . . . . . . : 93
Minimized fixed length . . . . . . . . . . . . . . : NO
Receiver maximums option . . . . . . . . . . . . . : 2
Maximum entry specific data length . . . . . . . . : 448
Maximum null value indicators . . . . . . . . . . . : 0
First sequence number . . . . . . . . . . . . . . . : 1
Last sequence number . . . . . . . . . . . . . . . : 93
More.

Discuss This Question: 4  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
  • TomLiotta
    To do it manually, start with creating a journal receiver with the CRTJRNRCV command. A journal requires a receiver in order to exist. Then create the journal with CRTJRN and associate the receiver with it. (If you already have a journal that you want to use, you don't need to create a new one.) To start the journaling, use the STRJRNPF command to name which physical files will be journaled, to associate the journal with those files and to specify the degree of journaling. The process can be automated by creating SQL collections rather than libraries or by the process described in the Automatically starting journaling topic of the Information Center. A number of related topics can be viewed through the navigation pane. Tom
    125,585 pointsBadges:
    report
  • NEON
    Hi Tom and King, this is really a great help. I tried it and it works!
    40 pointsBadges:
    report
  • Znason
    Hi.... If new files will be created in the future on your library.... create QDFTJRN 'DTAARA.... lenght of 40 char. Pos 1 - 10 is the library name where you created your Journal, Pos 11 -20 is the Journal Name, starting Pos 21 *ALL . Every time you create a new file, it will start journaling. (I think that's how I did in the past.).
    460 pointsBadges:
    report
  • Trishaful
    1) First you need to create a receiver by using CRTJRNRCV command 2) Then create a journal by CRTJRN command and attached the receiver you created in step 1. 3) Use STRJRNPF command to start the journalling.
    70 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