Copying the data that DSNADMSB and ADMIN_INFO_SQL collect to another subsystem
The jobs that DSNADMSB and ADMIN_INFO_SQL produce are primarily intended for the use of IBM® Software Support. However, you can modify those jobs so that you can run them on your own test systems to reproduce a problem environment.
Procedure
- Ensure that your test system does not contain data that
conflicts with the data that DSNADMSB or ADMIN_INFO_SQL collects.
Recommendation: Use a newly installed Db2 subsystem for testing.
- Customize the jobs:
- Modify the JOB statement for your test system.
- Change the subsystem name to the subsystem name for your test system.
- Change the steps that run TSOBATCH so that they run
IKJEFT01. For example, suppose that the original code looks like this:
//SETUP EXEC TSOBATCH,DB2LEV=DB2A
You need to change the code to something like this:
//SETUP EXEC PGM=IKJEFT01,DYNAMNBR=20 //SYSTSPRT DD SYSOUT=* //SYSPRINT DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //SYSTSIN DD *
- Change the steps that run DSNTEP3 so that they run DSNTEP2.
For example, suppose that the original code looks like this:
//SYSTSIN DD * DSN S(SSTR) R(1) T(1) RUN PROGRAM(DSNTEP3) END
You need to change the code to something like this:
//SYSTSIN DD * DSN S(SSTR) R(1) T(1) RUN PROGRAM(DSNTEP2) PLAN(DSNTEPD1) + LIB('DSND10.RUNLIB.LOAD') END
- Set the subsystem parameters on the test system as indicated
in the output file that contains subsystem parameter values (PARM
file).
If DSNADMSB or ADMIN_INFO_SQL output is returned in a single job stream (output-method is R), the subsystem parameter output is at the end of the job output.
- In the data definition language job (the job that contains
** DDL Information **
), make these changes:- Modify the -ALTER BUFFERPOOL statements at the end of the job to contain settings that are appropriate for your test system.
- Remove the asterisks (**) in front of the -ALTER BUFFERPOOL statements.
- Move the -ALTER BUFFERPOOL statements to the place in
the job that says:
**BUFFERPOOL INFORMATION GOES HERE
- Run the remainder of the jobs, in the following order:
- Data definition language job (contains
** DDL Information **
) - Statistics INSERTs job (contains
** Stats inserts **
) - Column statistics INSERTs job (contains
** Column Stats inserts **
) - Plan, profile and accelerator INSERTs job (contains
** Plan, Profile and Accelerator Inserts **
)
- Data definition language job (contains