JCL to Clear SMF Datasets

Here’s a simple example of a batch job to clear the content of your SMF datasets:


//SMFDP    EXEC PGM=IFASMFDP
//INDD1    DD   DISP=SHR,DSN=SYS1.MAN1
//INDD2    DD   DISP=SHR,DSN=SYS1.MAN2
//INDD3    DD   DISP=SHR,DSN=SYS1.MAN3
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   *
       INDD(INDD1,OPTIONS(CLEAR))
       INDD(INDD2,OPTIONS(CLEAR))
       INDD(INDD3,OPTIONS(CLEAR))

Explanation:

INDDx – are the DD cards that specify the SMF datasets. SYS1.MANx are the examples in the JCL above.

2 Comments

  1. Precisei hoje limpar os datasets do nosso SMF, utilizei o seu exemplo

  2. Olá!
    No mesmo âmbito, gostaria de saber se é possível, via JCL, ‘sacar’ as estatíticas de total elapsed time de cada job.

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.