Guidelines For Adding a Remote Journal

You should observe the following guidelines for adding a remote journal:

  • You can only associate a remote journal with a single source journal.

    Note: The same remote journal can then have additional remote journals that are associated with it that are located on other target systems. This is the cascade configuration that is shown in Network configurations for remote journals.

  • The remote journal will only have its attached receiver populated with journal entries that are replicated from the corresponding journal receiver on the source system. No journal entries can be directly deposited to a remote journal.

  • A maximum of 255 remote journals can be associated with a single journal on a source system. This can be any combination of asynchronously maintained or synchronously maintained remote journals.

To Add a Remote Journal

The following is an example using the physical file QGPL/TESTPF setup to have remote journaling enabled to a second system.

  1. Create the physical file.:
    > CRTPF FILE(QGPL/TESTPF) RCDLEN(10) 
      File TESTPF created in library QGPL.
      Member TESTPF added to file TESTPF in QGPL.
    
  2. Create the local journal receiver and journals, and enable the journaling of the physical file created:
    > crtjrnrcv jrnrcv(qgpl/jrcvrmt)
      Journal receiver JRCVRMT created in library QGPL
    
    > crtjrn jrn(qgpl/jrnrmt) jrnrcv(qgpl/jrcvrmt) fixlendta(*job *usr *pgm *sysseq)
      Journal JRNRMT created in library QGPL
    
    strjrnpf file(qgpl/testpf) jrn(qgpl/testpf)
      1 of 1 files have started journaling
    
  3. Add the remote journal:
    > addrmtjrn rdb(sys2) srcjrn(qgpl/JRNRMT) rmtjrntype(*TYPE2)
      Remote journal JRNRMT in QGPL was added
    
  4. Activate the remote journaling:
    > chgrmtjrn rbd(sys2) srcjrn(qgpl/jrnrmt) jrnstate(*active)
      Remote journal JRNRMT in library QGPL was activated