Methods of generating and retrieving error and task message records within a multitasking computer system5047977Abstract The invention relates to the retrieval of data records from a computer system. A user may retrieve selected error data records by specifying criteria and activating an error services utility. Only the error record data which satisfies the specified criteria will be printed or displayed. The user may also retrieve selected message data records by specifying criteria and activating an message services utility. The user may specify the display of selected messages which were generated by a specified component within the computer system. Moreover, after displaying a selected message, the user may request the system to display more detailed information regarding the displayed message. Claims We claim: Description DESCRIPTION
__________________________________________________________________________
PROBLEM DETERMINATION PROG
DO WHILE ESCAPE KEY IS NOT ACTIVATED
INITIALIZE PROBLEM DETERMINATION FIELDS
IF ERROR SELECTED THEN
CALL ERROR LOG SERVICES
ENDIF
IF MESSAGE SELECTED THEN
CALL MESSAGE SERVICES
ENDIF
ENDDO
END PROBLEM DETERMINATION PROG
ERROR LOG SERVICES
DO UNTIL ESCAPE KEY IS ACTIVATED
INITIALIZE ERROR LOG SERVICES SELECTION PANEL
FIELDS
DISPLAY ERROR LOG SERVICES SELECTION PANEL
IF PRINT SELECTED THEN
CALL PRINT SUBROUTINE
ENDIF
IF DISPLAY SELECTED THEN
CALL DISPLAY SUBROUTINE
ENDIF
ENDDO
END ERROR LOG SERVICES
__________________________________________________________________________
The print subroutine is called by the ERROR LOG SERVICES program. A print criteria panel is displayed which allows the user to enter specific search parameters. These search parameters facilitate the printing of a record which contains errors matching the specified parameters.
__________________________________________________________________________
PRINT SUBROUTINE
DO UNTIL ESCAPE KEY IS ACTIVATED
INITIALIZE PRINT CRITERIA PANEL
DISPLAY ERROR LOG PRINT CRITERIA PANEL
IF THE ESCAPE KEY IS NOT ACTIVATED THEN
DO UNTIL END OF FILE
GATHER THE CRITERIA SPECIFIED
OPEN THE SPECIFIED FILE
READ A RECORD
IF RECORD MATCHES THE SPECIFIED CRITERIA
THEN
FORMAT THE RECORD
PRINT THE RECORD
ENDIF
ENDDO
ENDIF
ENDDO
END PRINT SUBROUTINE
__________________________________________________________________________
The display subroutine is called by the ERROR LOG SERVICES program. A display criteria panel is displayed which allows the user to enter specific search parameters. These search parameters facilitate the display of a record which only contains errors matching the specified parameters.
__________________________________________________________________________
DISPLAY SUBROUTINE
DO UNTIL ESCAPE KEY IS ACTIVATED
INITIALIZE DISPLAY CRITERIA PANEL
DISPLAY ERROR LOG DISPLAY CRITERIA PANEL
IF THE ESCAPE KEY IS NOT ACTIVATED THEN
OPEN THE SPECIFIED FILE
DO WHILE ESCAPE KEY IS NOT ACTIVATED
GATHER THE CRITERIA SPECIFIED
READ A RECORD
IF AT THE TOP OF FILE THEN
DISABLE THE PAGE UP KEY
ENDIF
IF AT THE BOTTOM OF FILE THEN
DISABLE THE PAGE DOWN KEY
ENDIF
IF THE RECORD MATCHES THE SPECIFIED
CRITERIA THEN
FORMAT THE RECORD
DISPLAY THE RECORD
ENDIF
IF PAGE UP KEY IS PRESSED THEN
MOVE FILE POINTER TO THE PREVIOUS RECORD
IN THE FILE
ENDIF
IF THE PAGE DOWN KEY IS PRESSED THEN
MOVE FILE POINTER TO THE NEXT RECORD IN
THE FILE
ENDIF
ENDDO
ENDIF
ENDDO
END DISPLAY SUBROUTINE
MESSAGE SERVICES
DO UNTIL ESCAPE KEY IS ACTIVATED
INITIALIZE DISPLAY CRITERIA PANEL
DISPLAY MESSAGE CRITERIA PANEL
IF THE ESCAPE KEY IS NOT ACTIVATED THEN
DO WHILE ESCAPE KEY IS NOT ACTIVATED
OPEN THE SPECIFIED FILE
READ A RECORD
IF AT THE TOP OF FILE THEN
DISABLE THE PAGE UP KEY
ENDIF
IF AT THE BOTTOM OF FILE THEN
DISABLE THE PAGE DOWN KEY
ENDIF
IF THE RECORD MATCHES THE SPECIFIED
CRITERIA THEN
FORMAT THE RECORD
DISPLAY THE RECORD
ENDIF
IF HELP KEY IS PRESSED THEN
DISPLAY HELP TEXT
ENDIF
IF PAGE UP KEY IS PRESSED THEN
MOVE FILE POINTER TO THE PREVIOUS RECORD
IN THE FILE
ENDIF
IF THE PAGE DOWN KEY IS PRESSED THEN
MOVE FILE POINTER TO THE NEXT RECORD IN
THE FILE
ENDIF
ENDDO
ENDIF
ENDDO
END MESSAGE SERVICES
__________________________________________________________________________
The display subroutine is called by ERROR LOG SERVICES program and facilitates the display of an error log display criteria panel. The user then enters the required search parameters. The display subroutine then search the appropriate error log record for the errors which match the search parameters. Thereafter, the record is formatted and displayed to the user. The user after the record is displayed, may scroll through the file by activating the appropriate function keys. Referring to FIG. 2, there is shown a flow diagram for the problem determination program. After invoking the problem determination program in step 45, the user selects one of a plurality of problem determination utilities, such as the error log services or the message services. Step 47 determines whether the error services utility was selected. Step 48 determines whether the message services was selected. If the error log services was selected, control is transferred from step 47 to step 50. In step 50, the user selects either a print function or a display function from the error log services panel. The error log services panel also displays a default error log name to be used with the selected function. If the print function is selected, the print criteria panel is displayed in step 52 wherein the user enters the desired search parameters. The search parameters include a starting and ending dates and times and an error log type. If the user specifies the starting date and time, the first error log entry printed will be on or after the date/time specified. However, if the user leaves the starting date and time fields blank, the print subroutine begins printing with the oldest error log record. If the log type specified is an entry other than "0000", only the error log entries of the specified type will be selected to be printed. In step 54, the print subroutine reads a record from the selected error log. A determination is made in step 56 whether the record matches the search parameters. If the record does not match the search parameters, a file pointer is moved to the next subsequent record in step 58. However, if the record matches the search parameters, the record is formatted and printed in step 60. Step 62 determines whether the end of the file has been reached, if not the next record is read and the comparison is made for a match, otherwise, control is returned to step 52. If the display subroutine was selected in step 50, a display criteria panel is displayed to the user in step 70. The user then enters the appropriate search parameters which includes specifying a log name, if it is different from the default name displayed in the panel, an error log record type, and from date and time. If the user fails to enter a from date and a from time and the log type is "0000", the oldest error log is displayed and the entire specified error log will be available for display. If the entry for the log type an entry other than "0000", and the from date and time are specified, the first error log record displayed will be on or after the date/time specified and only the error log records of the specified type will be available for display. If the log type is an entry other than "0000" and the date and time are left blank, the first error log record displayed will be the oldest error log record for the specified type and only the error log records of the specified type will be available for display. Thus, step 72 reads a record from the file selected. A comparison is made in step 74 to determine whether the record matched the search parameters. If the record matches the search parameters, a determination is made in step 76 whether a file pointer is at the top of the file. Step 78 disables a backward key if the pointer is at the top of the file. A determination is made in step 80 to determine if the pointer is at the bottom of the selected file. Step 82 disables the forward key if the pointer is at the bottom of the file. In step 84, the record is formatted and displayed to the user. In step 86 a determination is made whether a message is being displayed. Since the user selected the error services in step 46, control is transferred to step 92. In step 92, a determination is made whether an escape key was activated. Control is returned to step 70, if the escape key is activated. Otherwise, step 94 determines whether the forward or backward key was activated. In step 96, if the backward key was activated, the pointer is moved to the immediately previous record which is then read and displayed if the record matches the search parameters. In step 98, if the forward key was activated, the pointer is moved to the immediately subsequent record which is then read and displayed if the record matches the search parameters. The procedure which includes steps 72 through 86 and 92 through 98 are repeated until the escape key is activated and detected in step 92. If the message services was selected in step 47, control is transferred from step 48 to step 70. Steps 70 through 86 are identical to those described for the display function of the error services utility noted above. However, since the message services were selected in step 47, the type parameter will be replaced with an originator parameter. The originator identifies the component that generated the message and the record displayed will represent a message. Thus, control is transferred from step 86 to step 88. Step 88 determines whether the user has activated a help function. This activity indicates that the user in viewing a selected message record is requesting more detail information regarding the displayed message record. The additional information is displayed to the user in step 90 and control is returned to step 84. The system 10 will continue to display the additional information until the user activates either the backward key, the forward key or the escape key. Thereafter steps 86, and 92 through 98 are executed in the same manner described for the display function explained above for the error services utility. Shown in FIG. 3 is a error log services panel. This panel is displayed to the user after the error services utility is selected and allows the user to select the type of error log processing desired. The log may be printed on printer 24 (FIG. 1) or displayed on the display 20 (FIG. 1). Upon selection of one of the processing options, an error log display criteria pop-up panel, shown in FIG. 4, is displayed which allows the user to enter specific criteria for the records to be processed. The error log display criteria pop-up panel which is displayed to the user upon the selection of the display processing option. The criteria includes at least the error log record type and the time and/or the date associated with the record to be displayed. If the user desires to display an error log file other than the one currently being used, the user enters the desired error log file in the log name entry field. The criteria fields provide the user with a mechanism for specifying a starting point, from date and/or from time, and a filter, log type for the type of error the user desires to view. If the user fails to specify any criteria, which means that the date and time fields are blank and the log type is equal to "0000", the oldest error log record will be displayed which contains any type of error. If the log type is specified only, the records of the specified type will be available for display. Shown in FIG. 5 is a error log display panel which is displayed in response to the processing of the error log display criteria panel (FIG. 4). The panel includes all of the specified errors, if any, which occurred on or after the specified date and time, if specified. The "h letters" appearing in the panel indicate that the data is to be interpreted as hexadecimal and the "x letters" indicate the data is to be interpreted as ASCII. Once a record has been displayed, the user may be scroll in a forward direction or in a backward direction starting with the specified date and time to display a next or previous entries of the error log which satisfy the criteria. If the user selects the print processing function for the error services, an error log print criteria pop-up panel shown in FIG. 6 will be displayed to the user. This panel allows the user to enter specific criteria for selecting error log records to be printed. The criteria may include the error log record type and the time and/or date associated with the record. The user may also enter the name of an error log file other than the one currently being used. If no criteria are specified, all error log records of all types will be printed in chronological order. If the log type is specified, only the error log records of the specified type will be printed. FIG. 7 shows an example of an error log printout. If the user selected the messages service, a display messages panel shown in FIG. 8 will be displayed to the user. The criteria fields on the panel allow the user to provide specific selection criteria for the messages to be displayed. The criteria includes a message originator, message date, and message time. The user may request that system 10 (FIG. 1) display a list of the originators, as shown in FIG. 9, which may be entered in the originator field. If no criteria is specified, the most recent messages from any originator will be displayed in chronological order with the latest message at the bottom of the display screen. If only the originator is specified, only those messages from the specified originator will be displayed. If only the time and date are specified, the first message displayed will be of any originator chronologically following the specified time and date. From this point, any messages of any originator with any time or date will be available for display. The date and time entries are primarily used to correlate a message with an associated error log entry. FIG. 10 shows a message log display panel which is displayed to the user subsequent to the processing of the display message panel (FIG. 8). In the event that there are more messages than are displayed, the user may page forward and backward to permit all of the selected messages to be viewed. While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made without departing from the spirit and scope of the invention.
|
Same subclass Same class Consider this |
||||||||||
