Each time the system attempts to delete a receiver for a journal under automatic management, a line is written to the system log to indicate what happened. To display the log, issue the following command as appropriate. For example, the following starts listing from a certain starting time and date:
DSPLOG PERIOD(('15:00:00' '07/04/2009'))
If a receiver was not deleted, the following message appears in the system log:
JOURNAL OR JOURNAL RECEIVER NOT AVAILABLE; REASON CODE 4.
For more detail, put the cursor on the message and press F1.
MESSAGE ID . : CPI70E6 SEVERITY. . : 10
MESSAGE TYPE : INFORMATION
DATE SENT. : 07/04/09 TIME SENT. . :15:01:31
MESSAGE . .: JOURNAL OR JOURNAL RECEIVER NOT AVAILABLE; REASON CODE 4. CAUSE . . .: THE REASON CODES AND THEIR MEANINGS FOLLOW:
1 - A LOCK CONFLICT ON EITHER JOURNAL QSQJRN IN LIBRARY <USER> IN AUXILIARY STORAGE POOL (ASP) GROUP *N, OR RECEIVER QSQJRN0009 IN LIBRARY <USER>, PREVENTED THE SYSTEM FROM EITHER DETERMINING IF
RECEIVERS WERE TO BE DELETED BY THE SYSTEM, OR FROM DELETING THE RECEIVER AT THIS TIME.
2 - RECEIVER QSQJRN0009 IN LIBRARY <USER> IN ASP GROUP *N IS IN USE BY THE FILE SYSTEM AND CAN NOT BE DELETED AT THIS TIME.
3 - AN IPL OR VARY ON OF AN IASP IS CURRENTLY IN PROGRESS. THE SYSTEM WILL WAIT TO PROCESS THE RECEIVER, IN CASE THE RECEIVER IS NEEDED FOR COMMITMENT CONTROL IPL RECOVERY.
4 - EXIT PROGRAM ORDLTRCV IN LIBRARY ORAUTOV404 STATED THAT RECEIVER QSQJRN0009 WAS NOT ELIGIBLE FOR DELETION.
5 - RECEIVER QSQJRN0009 HAS NOT YET BEEN FULLY REPLICATED TO 0 REMOTE JOURNALS. ONE OF THE REMOTE JOURNALS IS *N IN LIBRARY *N IDENTIFIED BY *N.
6 - THE EXIT PROGRAM REGISTRATION FACILITY WAS NOT AVAILABLE FOR USE TO DETERMINE WHAT EXIT PROGRAMS, IF ANY, ARE REGISTERED FOR EXIT POINT QIBM_QJO_DLT_JRNRCV.
When the system calls the exit program and it successfully deletes the receiver, a message similar to the following is issued:
OBJECT QSQJRN0007 IN <USER> TYPE *JRNRCV DELETED.
To obtain information about a receiver, use the WRKJRNA command on the IBM i screen. For example:
WRKJRNA JRN(<library name>/<journal name>)
yields the following:
WORK WITH JOURNAL ATTRIBUTES
JOURNAL. . . . . . . . . : QSQJRN LIBRARY. . . . . . : <USER>
ATTACHED RECEIVER. . . : QSQJRN0013 LIBRARY. . . . . . : <USER>
TEXT . . . . . . . . . . : COLLECTION - created by SQL
ASP . . . . . . . . . . : 1 RECEIVER SIZE OPTIONS: *RMVINTENT
MESSAGE QUEUE . . . . . : QSYSOPR *MAXOPT2
LIBRARY . . . . . . . . : *LIBL FIXED LENGTH DATA. : *JOB
MANAGE RECEIVERS . . . . : *SYSTEM *USR
DELETE RECEIVERS . . . : *YES *PGM
JOURNAL CACHE . . . . : *NO MANAGE
DELAY . . . . : 10 DELETE DELAY . . . . : 30
JOURNAL TYPE . . . . : LOCAL
JOURNAL STATE . . . . : ACTIVE
MINIMIZE ENTRY DATA . . : NONE
This information can help determine when and how a receiver did or did not get deleted. The Change Selector issues a message to its log when it encounters a receiver change, receiver save, or receiver delete. From this display, press F15 to obtain a list of online receivers:
WORK WITH RECEIVER DIRECTORY
JOURNAL . . . . . . : QSQJRN LIBRARY . . . . . . : <USER>
TOTAL SIZE OF RECEIVERS (IN KILOBYTES) . . . . . . . . . . : 335328
TYPE OPTIONS, PRESS ENTER. 4=DELETE 8=DISPLAY ATTRIBUTES
ATTACH SAVE
OPT RECEIVER LIBRARY NUMBER DATE STATUS DATE
QSQJRN0010 <USER> 00001 07/04/05 ONLINE 00/00/00
QSQJRN0011 <USER> 00002 07/04/05 ONLINE 00/00/00
QSQJRN0012 <USER> 00003 07/04/05 ONLINE 00/00/00
QSQJRN0013 <USER> 00004 07/05/05 ATTACHED 00/00/00