Space announcement We are no longer updating this version of the documentation for the infrastructure components (DBC, LGC, and NGL).  You can no longer leave comments on it. For the latest version of the documentation, see Common Mainframe Infrastructure 2022 release.

Reporting logset information


You can execute a REXX Exec to display the time span of data of each log file in a specific output group.

The syntax is:

NGLBATCH dbc-id ngl-id command logset_name

In this syntax:

  • dbc-id is the DBC subsystem ID
  • ngl-id is the piid of the NGL agent
  • command can be LIST LOGSET or STATUS LOGSET
  • logset_name follows the template of thedbc-id, followed by the letter L followed by the output group number

    For example: thelogset_name of Data Collector DC01 and output group 001 is DC01L001 .

Example

The following example issues a LIST LOGSET command for logset DC01 to DBC server DBCC and NGL PIID NGL1.

NGLBATCH DC01 NGL1 LIST LOGSET DC01L001

A REXX EXEC and the JCL to execute it are contained in the SAMP library (XXSAMP or NGLSAMP) in members NGLBATCH and NGLBCMD respectively.

Sample JCL to execute REXX Exec

//NGLBATCH JOB ....                                              
//TSOB    EXEC   PGM=IKJEFT01,DYNAMNBR=10                     
//SYSPRINT   DD  SYSOUT=*                                     
//SYSTERM    DD  SYSOUT=*                                     
//SYSTSPRT   DD  SYSOUT=*                                     
//STEPLIB    DD  DSN=your.loadlib,DISP=SHR      DBC/NGL loadlib           
//SYSPROC    DD  DISP=SHR,DSN=your.NGL.SAMP     NGL SAMP library                        
//SYSTSIN DD  *                                               
  %NGLBATCH  DC01 NGL1 LIST LOGSET DC01L001                

READY                                                                                
  %NGLBATCH  DC01 NGL1 LIST LOGSET DC01L001

 

In this syntax:

  • DC01 is the DBC subsystem ID
  • NGL1 is the NGL piid
  • DC01L001 is the DBC subsystem ID (DC01) and 001 is the logset number.

Example of output

----- Output for command:  LIST LOGSET DC01L001    -----                              
NGL MESSAGE RC: 00000000  RSN: FFFFFFFF                                              
BMCNGL59704I RESPONSE FROM JOB:DBCPROC2  NGL:NGL1  DBCID:DC01  ASID:0X0178           
BMCNGL59695I LOGSET           STATUS   DSNAME                                        
BMCNGL59696I                  START TIME             ENDTIME                         
BMCNGL59700I                  RECORDS        DATA BYTES    COMP BYTES     PERCENT    
BMCNGL59697I DC01L001         ACT/INU-C    NGL.GRP1.DC01.NGLC.C0000003      
BMCNGL59698I                   20120517 13:54:40.940  20120517 13:55:51.581          
BMCNGL59701I                         249268            96.73MB          25.19MB 26   
BMCNGL59697I DC01L001         ACTIVE -C    NGL.GRP1.DC01.NGLC.C0000002      
BMCNGL59698I                   20120517 12:58:28.938  20120517 13:54:40.940          
BMCNGL59701I                         390260           151.14MB          37.17MB 24   
BMCNGL59697I DC01L001         ACTIVE -C    NGL.GRP1.DC01.NGLC.C0000001      
BMCNGL59698I                   20120517 12:28:54.442  20120517 12:58:28.938          
BMCNGL59701I                         393155           152.15MB          37.27MB 24   
READY                                                                                
END

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*