DLTJRNRCV (Delete Journal Receiver)
DLTJRNRCV Command syntax diagram
Purpose
The Delete Journal Receiver (DLTJRNRCV) command deletes the specified journal receivers from the system, which frees the storage space allocated to the journal receivers. Exit point QIBM_QJO_DLT_JRNRCV is provided for the DLTJRNRCV command. See the Application Program Interfaces (APIs) topic in the Information Center for more information.
Restrictions
- The journal receiver must not be attached to a local journal at the time the command is issued.
- If an attempt is made to delete a journal receiver that is attached to a remote journal, and that remote journal is not actively receiving journal entries or replicating journal entries, and DLTOPT(*IGNINQMSG) is not specified, an inquiry message (CPA705E) is sent to the requesting workstation. If the request is made from a batch job, the message is sent to the system operator. This inquiry message can be automatically replied to. For more information, refer to the INQMSGRPY parameter of the Create Job Description (CRTJOBD) command.
- The journal receiver must not be in the middle of a chain of online receivers unless it is damaged or if its dual receiver is damaged. (The receivers must be deleted in the same order in which they were detached, to prevent gaps from occurring in the range of receivers).
- If an attempt is made to delete a journal receiver that has not been saved and DLTOPT(*IGNINQMSG) is not specified, an inquiry message (CPA7025) is sent to the requesting work station. If the request is made from a batch job, the message is sent to the system operator. This inquiry message can be automatically replied to. For more information, refer to the INQMSGRPY parameter of the Create Job Description (CRTJOBD) command.
- The user must have *ALLOBJ and *SECADM authority in order to specify the *IGNEXITPGM special value.
- This command is conditionally threadsafe if exit programs are registered for exit point QIBM_QJO_DLT_JRNRCV as follows:
- If no exit programs are registered or DLTOPT(*IGNEXITPGM) is specified, the command is threadsafe.
- If all exit programs are threadsafe and registered to run in a multithreaded job, the command is threadsafe.
- If any exit program is registered to not run in a multithreaded job and is being attempted to run in a multithreaded job, the command will fail and the journal receiver will not be deleted.
Use the MLTTHDACN parameter on the ADDEXITPGM command to specify whether an exit program can run in a multithreaded job. See the ADDEXITPGM command for more information.
Required Parameters
- JRNRCV
- Specifies the qualified name of the journal receivers being deleted.
The name of the journal receiver can be qualified by one of the following library values:
*LIBL: All libraries in the job's library list are searched until the first match is found.
*CURLIB: The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
*USRLIBL: Only the libraries in the user portion of the job's library list are searched.
*ALL: All libraries in the system, including QSYS, are searched.
library-name: Specify the name of the library to be searched.
journal-receiver-name: Specify the name of the journal receiver being deleted.
generic*-journal-receiver-name: Specify the generic name of the journal receiver being deleted. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. The asterisk substitutes for any valid characters. A generic name specifies all objects with names that begin with the generic prefix for which the user has authority. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete object name. If the complete object name is specified, and multiple libraries are searched, multiple objects can be deleted only if *ALL or *ALLUSR library values can be specified for the name. For more information on the use of generic names, refer to generic names.
- DLTOPT
- Specifies whether additional checking should not be done before a journal receiver is deleted.
*NONE: The journal receiver delete is attempted without ignoring any of the protective checks which are done before a journal receiver is deleted.
*IGNTGTRCV: The system does not verify that all remote journals associated with this journal that are immediately downstream on a target system have full copies of this journal receiver. The delete operation continues even if any of those remote journals does not have a full copy. This protection on a journal receiver only applies beginning when the remote journal was added using the Add Remote Journal (QjoAddRemoteJournal) API, until it is removed using the Remove Remote Journal (QjoRemoveRemoteJournal) API, or until the journal is deleted. For more information about APIs, seeApplication Program Interfaces (APIs) topic in the Information Center for more information.
*IGNINQMSG: Ignore inquiry message. Inquiry message CPA7025 is not presented to the user, even if this receiver has not been fully saved (for example, a save after the receiver was detached). Also, inquiry message CPA705E is not presented to the user even if the receiver is attached to a remote journal. The delete operation continues.
*IGNEXITPGM: Ignore user exit programs. Any user exit programs registered for exit point QIBM_QJO_DLT_JRNRCV are not called and not included in the decision of whether this journal receiver can be deleted.
Example for DLTJRNRCV
DLTJRNRCV JRNRCV(MYLIB/JRNRCLA)This command deletes the journal receiver JRNRCLA in library MYLIB from the system.
Error messages for DLTJRNRCV
*ESCAPE Messages
- CPF2105
- Object &1 in &2 type *&3 not found.
- CPF2110
- Library &1 not found.
- CPF2113
- Cannot allocate library &1.
- CPF2114
- Cannot allocate object &1 in &2 type *&3.
- CPF2117
- &4 objects type *&3 deleted. &5 objects not deleted.
- CPF2125
- No objects deleted.
- CPF2160
- Object type *&1 not eligible for requested function.
- CPF2176
- Library &1 damaged.
- CPF2182
- Not authorized to library &1.
- CPF2189
- Not authorized to object &1 in &2 type *&3.
- CPF70ED
- Receiver not deleted due to exit program, reason code &7.
- CPF701B
- Journal recovery of an interrupted operation failed.
- CPF7022
- Cannot delete journal receiver &1 while attached.
- CPF7023
- Cannot delete journal receiver &1 in &2.
- CPF7024
- Receiver &1 in &2 not deleted. Reason code, &3.
- CPF7025
- Delete of receiver &1 in &2 canceled.
- CPF705B
- No authority to specify OPTION(*IGNEXITPGM).
- CPF705E
- Delete of receiver &1 in &2 canceled.
- CPF705F
- Receiver not replicated to &8 remote journals.
- CPF707C
- Cannot delete journal receiver &1, reason code &5.
- CPF707D
- Journal receiver &1 in library &2 not deleted.
- CPF707E
- Journal receiver &1 in library &2 not deleted.
- CPF9802
- Not authorized to object &2 in &3.
- CPF9803
- Cannot allocate object &2 in library &3.
- CPF9810
- Library &1 not found.
- CPF9820
- Not authorized to use library &1.
- CPF9830
- Cannot assign library &1.