17.05 - Example: Using the ResAMPCpuByGroup Macro - Teradata Database

Teradata Vantageā„¢ - Resource Usage Macros and Tables

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
17.05
created_date
June 2020
category
Administration
User Guide
featnum
B035-1099-170K

The following statement executes the ByGroup version of the ResCPUByAmp macro shown in Example 1. It uses the same starting and ending dates and times (using character string format), except the report is for a node grouping.

EXECUTE ResAMPCpuByGroup ('2006-12-25','2006-12-31',
080000, 240000);

where:

Statement Element Description
ResAMPCpuByGroup Name of the resource usage macro
'2006-12-25' Starting date of December 25, 2006
'2006-12-31' Ending date of December 31, 2006
080000 Starting time of 8:00 a.m.
240000 Ending time of 12:00 midnight

For information on using numeric values for dates, see Teradata Vantageā„¢ - Data Types and Literals, B035-1143.