Extracting Performance HDB data to CSV
After you have loaded data into an HDB it is then eligible for extract to CSV data sets.
- Report Interval
- Specify the reporting time range. You can specify an explicit date, such as 2004/12/15, or a relative date to indicate today (0), yesterday (-1), two days ago (-2), and so on. Adjacent is the time range of data contained in this HDB. If you specify a Report Interval, then it must be within this range otherwise the extract request will fail.
- Extract Recap DDname
- The DDname for the Recap report which prints at the end of extract
processing to provide processing statistics. The DDname is mandatory.
CICS® PA assigns a default DDname HXTS0001.
This option generates the
OUTPUT(ddname)
operand. - Output Data Set
- The name of the data set where the extract records are written.
When specifying the data set name, standard TSO conventions apply.
If CICS PA is to create the data set at run time, the default allocation attributes specified on the Reporting Allocation Settings panel are used in generating the JCL. If the data set is already cataloged, then CICS PA will use DISP=OLD or DISP=MOD according to your request to overwrite or append to the existing data set.
CICS PA generates the
DDNAME(ddname)
operand and assigns a default DDname HDBX0001. - Disposition
- This option applies if the extract data set you specified is already
cataloged.
Select option 1 - OLD to overwrite the data set contents with the new extract data.
Select option 2 - MOD to append the new extract data.
- Report Form
- Specify a Report Form to tailor the format of the extract records. If you do not specify a Form, CICS PA will write all the fields in the HDB in order.
- Delimiter
- Specify the field delimiter to be used to separate each data field in the extract data set. The
default is a semicolon and generates the
DELIMIT(';')
operand. - Include Field Labels
- Select this option to indicate that the first record to be written to the extract data set is to
be a field labels record. This is the default and generates the
LABELS
operand.Leave blank if you do not want a field labels record written to the extract data set. This generates the
NOLABELS
operand. - Numeric Fields in Float format
- Select this option if you want CICS PA to write
numeric fields to the extract data set in S390 FLOAT format. This
generates the
FLOAT
operand. Specify FLOAT format if you plan to import the extract into a DB2® table. When the DB2 Load Utility is used, it will interpret all numerical fields reliably and consistently in FLOAT format.If you do not select this option, the numeric fields are written in a mixture of integer, real and exponential using character digits. This is the default and is suitable when importing the extract data into a PC spreadsheet tool. This generates the
NOFLOAT
operand. - Time Interval
- Specify an optional Time Interval when extracting Summary HDBs.
Data in a Summary HDB is already summarized by the interval that was used to load the data. This is the value specified in the HDB or, if Time Interval was not specified in the HDB, the value defined in the Template.
You can further summarize the data by specifying a multiple of the interval that was used to load the data. Specify a value in the range 00:00:01 (1 second) to 24:00:00 (24 hours). For example, specify 00:15:00 if you want to summarize transaction activity over 15 minute intervals. If you are reviewing many days worth of data then you might specify 24:00:00 (24 hours) so that you can view the daily trend. In Figure 2, the Interval has been changed to 1 hour.
Notes:- If you specify a reporting interval that is equal to or less than the interval that was used to load the data, the report or extract uses the data as-is, without further summarization.
- If you do not specify a reporting interval it defaults to the interval that was used to load the data, unless that value is less than 1 minute, in which case the reporting interval is set to 1 minute.
When you have specified your Extract options, you are prompted to Press ENTER to proceed with request. This provides a last opportunity to review and change your request details.
The HDB container data sets are listed at the end of the JCL. They are not required here because the CICS PA batch utility will dynamically allocate the data sets when they are required. CICS PA adds the data sets into the JCL primarily for the purpose of DFHSM recall, if required. It is more efficient to recall data sets in the JCL (where job initiation can recall migrated data sets en masse) rather than one at a time when dynamically allocated.
HDB(DDNAME(HDBX0001),EXTRACT(CICSP1H),OUTPUT(HXTS0001),...)
Enter SUBmit in
the command line to submit the job to run the report.