This document will discuss each method for determining the number of reports on the database and the differences in the output from each method.
To produce statistics on the number of sysouts in the database, you can run batch programs, SARBCH and ADLIST, or issue the online statistical command (ST).
The online statistics are accessed by typing ST on the command line. The screen that comes up looks similar to below:
CA-View ALL ------------------ Database Status ----------- Command ===> Total Sysouts ---> 1,095 On Disk Sysouts ---> 452 Lines ---> 2,155,716,939 Percentage Usage ---> 27
This method measures the statistics at this moment. Statistics must be set once using the SARDBASE/SET STATS function, all database activity must be stopped while this function is executing.
The SARBCH /LIST report will list all the sysouts in the database when using the following JCL:
//STEP1 EXEC PGM=SARBCH //* //STEPLIB DD DISP=SHR,DSN=??..VIEW.CAILIB //SYSPRINT DD SYSOUT=* //REPORT DD SYSOUT=* //SYSIN DD * /DBASE NAME=??...db_hlq...... /LIST GEN=* /* //
The ADLIST program can list sysouts by date range. Run the following JCL to list the sysouts for all dates in the database.
//STEP1 EXEC PGM=ADLIST,PARM='....db_hlq....' //STEPLIB DD DSN=.....VIEW.CAILIB,DISP=SHR //SYSPRINT DD SYSOUT=* //CTLCARD DD DSN=.......CTLCARD1,DISP=(MOD,CATLG), // UNIT=SYSDA,SPACE=(TRK,(1,1)), // DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000) //SYSIN DD * /LIST ARCHDATE=* /* //
The report produced by the ADLIST program lists the sysouts in the database and the resources used for AFP reports that are stored in the database. The resource names start with a period.
In order to compare the number of sysouts from the SARBCH report or the online statistical display with number of sysouts in the ADLIST report, you must first subtract the entries in the ADLIST report that start with periods.