There are three stages involved in controlling the scope of a list:
start list generation with the
START-LIST-GENERATIONstatementselect memory areas with the
ADD-LIST-OBJECTSandREMOVE-LIST-OBJECTSstatementsstart list output using the
PRINT-LISTstatement
Any number of ADD-LIST-OBJECTS and REMOVE-LIST-OBJECTS statements can be inserted in any sequence between the START-LIST-GENERATION and PRINT-LIST statements. The selected areas are added together and take effect only when the final PRINT-LIST statement is issued.
The START-LIST-GENERATION statement contains all the specifications regarding the input medium, in other words the names of the dump files to be evaluated. The PRINT-LIST statement defines the output medium (SYSLST or file).
Please refer to the relevant statement descriptions for details.
Every list generated by DAMP includes at the end of the report a list of the objects selected in the form of ADD-LIST-OBJECTS statements. Thus, for instance, the required options can be set interactively by marking them and then the corresponding statements can be taken from the generated list.
Examples of statement sequences
The following examples are intended to illustrate the possible structure of a statement sequence in batch or procedure mode in DAMP.
The statement sequences, which start with START-LIST-GENERATION and end with PRINT-LIST, could, of course, be stored in a file, which is then assigned at execution time using the DAMP statement START-STATEMENT-SEQUENCE.
Example 1
/BEGIN-PROCEDURE
/ASSIGN-SYSDTA TO-FILE=*SYSCMD
/MODIFY-JOB-SWITCHES ON=5
/START-DAMP
START-LIST-GENERATION FILES-TO-EVALUATE=DUMP.HUGO ————————————————————— (1)
ADD-LIST-OBJECTS TASK-INFORMATION=*PARAMETERS(SELECT=C'RP01', -
INFORMATION=*PARAMETERS(CONTROL-BLOCKS=*TCB, -
PAGES=*INTERVAL(FROM=X'0',TO=X'FFF'))) ——————————————— (2)
ADD-LIST-OBJECTS GLOBAL-INFORMATION=*PARAMETERS(CONTROL-BLOCKS=*XVT, -
MODULE=DOPEN) ————————————————————————————————————— (3)
PRINT-LIST OUTPUT=#REPORT ————————————————————————————————————————————— (4)
END
/MODIFY-JOB-SWITCHES OFF=5
/END-PROCEDURE
(1) | The dump file to be analyzed is specified with |
Example 2
/BEGIN-PROCEDURE /ASSIGN-SYSDTA TO-FILE=*SYSCMD /ADD-FILE-LINK FILE=SYSDUMP.FROM.YESTERDAY, LINK=#1 ——————————————————— (1) /MODIFY-JOB-SWITCHES ON=5 /START-DAMP OPEN-DIAGNOSIS-OBJECT OBJECT=*#1 —————————————————————————————————————— (2) START-LIST-GENERATION ————————————————————————————————————————————————— (3) PRINT-LIST ———————————————————————————————————————————————————————————— (4) END /MODIFY-JOB-SWITCHES OFF=5 /END-PROCEDURE
(1) |
|
(2) | The |
(3) | List output is started. A |
(4) | Output is directed to SYSLST. |
DAMP selects the areas to be output (minimum output).