HP 3000 Manuals

Suggested User Logging Procedure [ User Logging Programmer's Guide ] MPE/iX 5.0 Documentation


User Logging Programmer's Guide

Appendix A  Suggested User Logging Procedure 

The suggested User Logging procedure includes the following:

   1.  Use the :GETLOG command to create a logid for the application.  If
       data security is required, use the ;PASS option of the :GETLOG
       command.  Specify the configured device class name (DISC or TAPE).
       If the logid specified in the :GETLOG command is associated with a
       disc file, build the file with the ;CODE=LOG option of the :BUILD
       command and enough disc space to contain one day's output.

   2.  Design the application and data structures.

   3.  Determine what information will be required for recovery of the
       application's data structures.

   4.  Write the application and include a separate file which contains
       the identification information, and include the appropriate calls
       to User Logging intrinsics to record the data necessary for
       recovery.

   5.  Design and write the recovery program.  The recovery program must
       recognize the User Logging file record formats and the
       application's data structures.

   6.  Have the logging process for your logid started (refer to the :LOG
       command in the MPE XL Commands Reference Manual (32650-90003)).

   7.  Store a copy of the application's data structure to a backup
       medium in case recovery procedures are required.

   8.  Run the application.

   9.  If it is necessary to recover the data structures, :RESTORE the
       backup copies and run the recovery program.  This recovers any
       changes that were made to the data structures since backup was
       done.


MPE/iX 5.0 Documentation