CL Command Reference - CRTJRNRCV

CL Command List > CRTJRNRCV Reference

Description:

The Create Journal Receiver (CRTJRNRCV) command creates a journal receiver. Once a journal receiver is attached to a journal (with the Create Journal (CRTJRN) or Change Journal (CHGJRN) command), journal entries can be placed in it. A preferred auxiliary storage pool(ASP), and a storage space threshold value can be specified for the journal receiver.

Restrictions:

. A journal receiver cannot be created in library QTEMP.

. This command cannot be used to create a journal receiver for a remote journal.

. If the library to contain the journal receiver is on an independent ASP then ASP(*LIBASP) must be specified.


Examples:

CRTJRNRCV JRNRCV(MYLIB/JRNRCLA) ASP(3)
THRESHOLD(100000) AUT(*ALL)
TEXT(¡¯RECEIVER FOR WEEK 37¡¯)

This command creates a journal receiver named JRNRCLA in library MYLIB. Storage space for the journal receiver is allocated from user auxiliary storage pool (ASP) 3. When the size of JRNRCLA is larger than 100000 kilobytes (102,400,000 bytes), the message CPF7099 is sent to the journal message queue, if the journal to which this receiver is attached has the MNGRCV(*USER) attribute. The public authority to the journal receiver is *ALL.