40 pts.
 Journal in AS/400
hi, please help. can someone tell me how to journal my PF file?

Software/Hardware used:
AS/400
ASKED: April 3, 2011  10:25 AM
UPDATED: May 19, 2011  11:59 AM

Answer Wiki:
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.
Last Wiki Answer Submitted:  April 8, 2011  7:06 am  by  kingstoniseries   200 pts.
All Answer Wiki Contributors:  kingstoniseries   200 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 108,005 pts.

 

Hi Tom and King, this is really a great help. I tried it and it works!

 40 pts.

 

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 pts.

 

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 pts.