Instructions pour l'ajout d'un journal distant

Vous devez respecter les consignes suivantes pour ajouter un journal distant :

Pour ajouter un journal distant

L'exemple suivant illustre l'utilisation de la configuration QGPL/TESTPF du fichier physique pour activer la journalisation à distance sur un second système.

  1. Créez le fichier physique :
> CRTPF FILE(QGPL/TESTPF) RCDLEN(10)
  File TESTPF created in library QGPL.
  Member TESTPF added to file TESTPF in QGPL.
  1. Créez les journaux et les journaux locaux et activez la journalisation du fichier physique créé :
> 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
  1. Ajoutez le journal distant :
> addrmtjrn rdb(sys2) srcjrn(qgpl/JRNRMT) rmtjrntype(*TYPE2)

  Remote journal JRNRMT in QGPL was added
  1. Activez la journalisation à distance :
> chgrmtjrn rbd(sys2) srcjrn(qgpl/jrnrmt) jrnstate(*active)

  Remote journal JRNRMT in library QGPL was activated