Standalone Logtool for MPE/iX

c CHANGE: Change all occurrences of one string to another in the current line when the search string and replace
string are properly delimited. A proper delimiter is a non-alpha- betic character: ', ", /, etc. The substitution is
specified as: c<delim> search-string <delim> [replace-string [<delim]]. Omitting the replace-string causes
occurrences of search-string to be deleted, with no substitution.
other Simple replacement: Any other character ( not i, r, d, d>, >, >d, or c) causes that character to be replaced in the
current line at the position indicated by the character. In fact, simple replacement also occurs for the editing
characters i, r, c, or > if they are not followed by text; or if > appears at or beyond the current end of the line.
Command Example:
LOGTOOL>sel log=1,,4,5 type=11 ldev=1,2 outfile=myoutfile
LOG FILE NUMBER EXPECTED. (LTERR 614)
LOGTOOL>redo
>sel log=1,,4,5 type=11 ldev=1,2 outfile=myoutfile
> d
>sel log=1,4,5 type=11 ldev=1,2 outfile=myoutfile
> i,3
>sel log=1,4,5 type=11 ldev=1,2,3 outfile=myoutfile
> ddd
>sel log=1,4,5 type=11 ldev=1,2,3 outfile=myfile
> 12
>sel log=1,4,5 type=12 ldev=1,2,3 outfile=myfile
>
LOGTOOL>sel log=1,4,5 type=12 ldev=1,2,3 outfile=myfile
( Logtool now processes the corrected "select" command ... )
SELECT
The SELECT command allows the user to create a "work" file containing a subset of the log records found in the system
log files. Currently, the work file will created in the diagnostic directory (DIAG.SYS on MPE/iX).
In order for a log record to be included in the work file, it must match all of the selection criteria specified. The user
can define the selection criteria by using the TYPE keyword, DATE or TIME options, or field label keywords.
TYPE
keyword
The TYPE keyword can be used to indicate that only log records of the types specified are to be included.
The
LOGTOOL command TYPES can be used to obtain a list of the log record types available.
DATE or
TIME
options:
The DATE or TIME options can be used to indicate that only the log records generated between the date
and time entered are to be included.
Field
Label
Keywords:
Field label keywords allow the user to select log records based on the data present in the log record.
Whenever the LIST command displays a data item from a log record, a field label is shown before the
data item to identify what the item represents. This field label is usually a text abbreviation. Field label
keywords allow the user to use this text abbreviation as a selection keyword. For example, if the user
wishes to see all log records with a field label of "LDEV" and a logged data value of 1, the parameter of
"LDEV=1" can be entered as part of the LIST command.
If no selection criteria are given, all log records found will be included in the work file.
To execute this command, the user must possess at least diagnostic security level 1.
Syntax:
SELECT LOG=<log list>
;OUTFILE= <file name>
[;TYPE=<type list>]
[;<field label>=<data list>]