Deleting the system logger structures

  1. If any subsystem or application is using the system logger, provide a normal shutdown of the subsystem and application. Refer to the topic "Finding Information for System Logger Applications" in Planning for system logger applications for more specific information on logger exploiter use.
    Verify the users of system logger structures with the following system commands:
    DISPLAY LOGGER,STR
    DISPLAY XCF,STRUCTURE,STRNAME=strname
    DISPLAY LOGGER,L,LSN=streamname

    Action will need to be taken on each system that has log stream connections and is using the CF structure.

  2. For OPERLOG, use the D C or D C,HC commands to determine if a log stream is being used for Consoles. If so, enter the VARY OPERLOG,HARDCPY,OFF command to cause consoles to disconnect from its log stream and change the hardcopy medium.

    Also, exit from all SDSF sessions that are browsing from OPERLOG.

    After the structure has been deleted, the VARY OPERLOG,HARDCPY command can be used to cause consoles to use a log stream again.

  3. For LOGREC, use the D LOGREC command to determine if a log stream is being used. If so, enter the SETLOGRC DATASET command (assuming a data set was established when the system was IPLed) to cause LOGREC to disconnect from its log stream and stop LOGSTREAM recording of LOGREC entries.

    After the structure has been deleted, the SETLOGRC LOGSTREAM command can be used to cause LOGREC to use a log stream again.

  4. After the Logger users have disconnected from their log streams, you can use D LOGGER,C,LSN=streamname commands to determine if logger has completed its logstream disconnect processing for the log streams.

    If the log stream disconnect status remains in DISCONNECT PENDING state, then the SETLOGR FORCE,DISConnect,LSName=streamname command can aid in getting the log stream disconnected from the system and for logger to disconnect from the CF structure.

  5. However, after logger has disconnected from the CF structures, check if any are still in a failed-persistent connection state using the XCF,STRUCTURE,STRNAME=structname command.

    Deletion of the structure might need to be forced. See Deleting structures with SETXCF FORCE for more information on forcing deletion of persistent structures with the SETXCF FORCE,STRUCTURE,STRNAME=strname system command.

    Note that forcing the structure connections and the subsequent deletion of a structure used by logger can result in logger marking the log stream as being damaged, meaning there may be a possible loss of data condition for the log stream. Check on how each log stream exploiter deals with a damaged log stream condition to ensure forcing the structure deletion is appropriate.

  6. After all users of system logger have disconnected from their log streams and logger has disconnected from a CF structure, the system deletes the structure in the CF.