DSNTSMFD 呼び出しの例

独自の DSNTSMFD 出力を生成するために、この DSNTSMFD 呼び出しの例をモデルとして使用できます。

例: Db2 トレース・レコードの解凍

SMF データ・セットに、SMF タイプ 100、101、または 102 の圧縮された Db2® トレース・レコードが含まれているとします。順次データ・セット DSN1110.SMFDATA の中に既にデータをダンプしたとします。 データ・セット DSN1110.SMFOUT にすべての SMF データを書き込み、SMF タイプ 100、101、または 102 のすべての圧縮レコードを DSN1110.SMFOUT 内で解凍する必要があるとします。

DSNTSMFD を実行するステップの JCL は、次のようになります。

//RUNSMFD  EXEC PGM=DSNTSMFD              
//SYSPRINT  DD SYSOUT=*                   
//SYSUDUMP  DD SYSOUT=*                   
//SMFINDD   DD DSN=DSN1110.SMFDATA,        
//             DISP=SHR                   
//SMFOUTDD  DD DSN=DSN1110.SMFOUT,         
//             LIKE=DSN1110.SMFDATA,       
//             DISP=(,CATLG),             
//             UNIT=SYSDA,                
//             SPACE=(TRK,(1200,200))     

出力は次のようになります。

*** DSNTSMFD *** STARTING     2011/06/27          15:55:39                    
------------------------------------------------------------------------------
Total records read:.................................      146232              
  Total DB2 records read:...........................      146183              
    Total DB2 compressed records read:..............      146183              
    Total DB2 compressed records decompressed:......      146183              
  Total non-DB2 records read:.......................          49              
                                                                              
Aggregate size of all input records:................    60334251           57M
  Aggregate size of all input DB2 records:..........    60323008           57M
    Aggregate size of all DB2 compressed records:...    60323008           57M
  Aggregate size of all output DB2 records:.........   102449084           97M
    Aggregate size of all DB2 expanded records:.....   102449084           97M
  Aggregate size of all non-DB2 input records:......       11243           10K
                                                                                
    Percentage saved using compression..............          41%               
                                                                                
Details by DB2 subsystem                                                     
    Subsystem ID:  DB2A                           
        Number of records:..........................      146183                
        Number of compressed records:...............      146183                
        Aggregate size of DB2 records:..............    60323008           57M  
        Aggregate size of DB2 compressed records:...    60323008           57M  
        Aggregate size of DB2 expanded records:.....   102449084           97M  
        Percentage saved using compression..........          41% 
------------------------------------------------------------------------------