Transforming historical z/OS Connect EE detail data into CSV files (PTF BPF0457 applied)
BMC AMI Ops Monitor for Java Environments can extract historical z/OS Connect EE detail data from active NGL logsets and transform the extracted data into comma-separated values (CSV) format. You can then analyze the extracted CSV data in off-mainframe data analytics tools, such as Excel or Splunk.
BMC AMI OpsMJE extracts the data by using the MJE9NGEX utility and transforms the data into CSV format by using the BMC AMI Ops Infrastructure Data Transformation utility (BBM9MD75). The MJE9NGEX utility is similar to the BMC AMI Ops Infrastructure History File Extraction utility (BBM9MD73).
To run MJE9NGEX, customize and submit the MJENGLEX BBSAMP member. MJE9NGEX creates a data set containing the extracted data. The data set is formatted with the common header, and includes data from the following OREC DSEC fields:
- ORECTIME
- ORECRTIN
- ORECSYS
- ORECISID
- ORECOTYP
- ORECRES
This data set is used as the input for the BBM9MD75 utility. To run BBM9MD75, customize and submit the MJENGL75 BBSAMP member. MJENGL75 creates a data set containing the transformed CSV data. This process is explained in the following procedures.
For more information about extracting and transforming history data for BMC AMI Ops Infrastructure products, seeWorking with historical data.
Before you begin
Make sure that the BMC Execution Component for z/OS (DBC) and the Next Generation Logger (NGL) agent are up and running.
To extract the data
Customize and submit the MJENGLEX member in BBSAMP as follows:
- Insert a valid JCL job card.
Replace the variables in the following DD statements:
DD statement
Variable
Description
STEPLIB
?BBLINK?
MJE BBLINK library
?XXLINK?
MJE XXLINK library
OUTPUT
?OUTPUTDSN?
Output data set to send the z/OS Connect EE detailed data in normalized format
Specify the following parameters:
Parameter
Description
TYPE=[CD0 | ZC1 | ZCD | S79 | S80 ]
(Required) Type of record to extract
- CD0—All JVM CPU detail
- ZC1—z/OS Connect EE API Requester detail
- ZCD—z/OS Connect EE SMF123 API Provider detail
- S79—JZOS and IMS SMF 121-1 & 29-2 detail
- S80—JZOS CPU SMF detail
DBCSSID=dbcSsid
(Required) Database collector SSID
NGLPIID=nglPiid
(Required) NGL PIID for the NGL agent
STARTTIME=[DDMMMYYYY-HH:MM:SS | YESTERDAY]
(Optional) Date and time from which to start extracting NGL records
ENDTIME=DDMMMYYYY-HH:MM:SS
(Optional) Date and time to stop extracting NGL records
Submit the JCL by typing SUB on the command line.
The data is extracted to the specified OUTPUT data set in a normalized format. For extraction details, see the SYSPRINT DD card. If SYSPRINT contains return codes, see Return codes used by MJE9NGEX.
To transform the data
Customize and submit the MJENGL75 member in BBSAMP as follows:
- Insert a valid JCL job card.
Replace the variables in the following DD statements:
DD statement
Variable
Description
OUT1
?OUTPUTCSV?
CSV data set
STEPLIB
?BBLINK?
MJE BBLINK library
MD73IN
?INPUTDSN?
Data set containing the generated output of the MJENGLEX JCL
This is the OUTPUT data set specified in the MJENGLEX JCL. Alternatively, if you created multiple OUTPUT data sets for different record types, specify the concatenated data set.
BBACTDEF
?BBACTDEF?
BBACTDEF library where MJFTDM resides
BBSAMP
?BBSAMP?
BBSAMP library where the product's data maps reside
BBMAP
?BBMAP?
BBMAP library where the product's data maps reside
Insert a SELECT query statement specifying the record entries (REs) that you want to filter, and the product data map that contains the REs.
For more information about SELECT statements, seeTransforming historical data.- Submit the JCL by typing SUB on the command line.
The CSV data is loaded into the specified OUT1 data set. You can use the FTP function to download the data set to your computer.
Return codes used by MJE9NGEX
MJE9NGEX might issue the following return codes during processing. In general, any non-zero condition code is accompanied by a message that indicates the source of the error.
Return code | Description |
---|---|
0 | Indicates successful NGL data extraction |
4 | Invalid parameter syntax |
8 | Open for INPUT file, failed |
12 | Open for SYSPRINT, failed |
16 | Open for OUTPUT file, failed |
20 | Load NGL communication program, failed |
24 | Connection to the NGL agent, failed |
28 | Error retrieving first NGL record |
32 | Bad NGL request function |
36 | Storage obtain for OREC DSECT, failed |
40 | NGL record has no length |
44 | NGL record problem |
48 | Invalid record type entered |
52 | Invalid date for STARTTIME |
56 | Invalid date for ENDTIME |
60 | Invalid time for STARTTIME |
64 | Invalid time for ENDTIME |
68 | Invalid format for STARTTIME or ENDTIME |
72 | Conversion from regular date and time to STCK, failed |
76 | Conversion from STCK to regular date and time, failed |
80 | Conversion from current time to the STCK format, failed |
84 | YESTERDAY option invalid if ENDTIME is specified |
88 | Setting SYSCLONE suffix failed |