Specifying the Information to Be Logged

An operator can use the LOGGING (Logging Options) system command to select the major and minor log entry types that are to be logged. You can specify that a particular type of log entry is to appear in the job log, in the system log, in both, or in neither. The following LOGGING command causes Major Type 1, Minor Type 5 (File Open) entries to appear in job logs, and Major Type 1, Minor Type 6 (File Close) entries to appear in the system log:

LOGGING 1,5 JOBFILE ALL;1,6 SUMLOG ALL;

You can use the DEPTASKACCOUNTING task attribute and the FILEACCOUNTING task attribute to control certain types of logging. These task attributes affect the system log and the job log equally. You can use DEPTASKACCOUNTING to prevent the system from generating log entries to record the initiation and termination of a dependent process. You can use the FILEACCOUNTING task attribute to prevent the system from generating log entries to record file open and close actions. You can create defaults for these task attributes on a system wide basis with the ACCOUNTING (Resource Accounting) system command. You can create defaults for these task attributes on a usercode basis through assignments to the usercode attributes with the same names in the USERDATAFILE.

You can use either of two system commands to log comments about the history of a particular process. The LC (Log Comment) system command enters a comment in the system log only. The LJ (Log to Job) system command enters a comment in both the system log and the job log of a particular job. The following is an example of this command:

3335 LJ JOB RAN NORMALLY

You can use the NOJOBSUMMARYIO task attribute to suppress the logging of information in the job log. If NOJOBSUMMARYIO is set, no entries are written to the job log, except for the Major Type 1, Minor Type 1 (BOJ) entry or the Major Type 4, Minor Type 1 (Log-on) entry. NOJOBSUMMARYIO can also be set and reset throughout a job to prevent selected parts of the job from appearing in the job log. Using NOJOBSUMMARYIO saves I/O time and thus allows the job to run more efficiently.

You can use the LG (Log for Mix Number) system command and the LOGSELECT usercode attribute to enable logging of selected types of events for a particular usercode. These features enable the system administrator to monitor the activities of a particular user who might be committing some type of security breach. These features affect the system log only.