Determine the Total Number of Sysouts in an OM View Database
search cancel

Determine the Total Number of Sysouts in an OM View Database

book

Article ID: 46342

calendar_today

Updated On:

Products

View

Issue/Introduction

How can the total number of sysouts in a View database be determined?

 

Environment

  • View®
  • OM View for z
  • Output Management View® for z/OS

Resolution

You can use the SARGRW program to determine the total number of sysouts in a View database:

//XXXXXXXX JOB ... 
//SARGRW EXEC PGM=SARGRW
//STEPLIB DD DISP=SHR,DSN=VIEW.CVDELOAD
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(5),,CONTIG)
//SORTWK02 DD UNIT=SYSDA,SPACE=(CYL,(5),,CONTIG)
//SORTWK03 DD UNIT=SYSDA,SPACE=(CYL,(5),,CONTIG)
//SYSUDUMP DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//PRTFILE DD SYSOUT=*
//SYSIN DD *
/CONTROL SEQ=RID DATABASE=view_hlq    <=== Modify DB name
/TITLE 'COUNTING OF SYSOUTS'
/DEFINE CNT BIN
/SET CNT = CNT+1
/ON ENDDATA
/ PRINT RID
/ PRINT 'TOTAL SYSOUTS = '||CNT COL(1)
/END
/*
//

Note: The above is a simple program, which should run quickly, doing only counting and only the necessary printing at the end.