BTEQ Script Listing for ListSoftware_Event_Log Macro | SystemFE Macros | Vantage - 17.10 - ListSoftware_Event_Log - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SystemFE Macros

Advanced SQL Engine
Teradata Database
Release Number
Release Date
July 2021
Content Type
Publication ID
English (United States)
REPLACE MACRO SystemFE.ListSoftware_Event_Log
 (Fromdate (date,               FORMAT 'YYYY-MM-DD'),
  Todate   (date, DEFAULT DATE, FORMAT 'YYYY-MM-DD')) AS
echo 'set defaults;';
echo 'set format on;';
echo 'set width 254;';
echo 'set NULL as "-";';
echo 'set separator 2;';
echo 'set pagelength 60;';
echo 'set omit on 1,2;';
echo 'set suppress on 3,4;';
echo 'set heading "&DATE      Software Event Log Listing Between &1 and &2
     &TIME|| ||";';
Select    :Fromdate      (Format 'YYYY-MM-DD')
        , :Todate        (Format 'YYYY-MM-DD')
        , TheDate        (Title  'Date')
        , TheTime        (Title  'Time')
        , Event_Tag
        , Text
From      DBC.Software_Event_Log
Where     TheDate between :fromdate and :todate
Order By  TheDate, TheTime, Line;
echo 'set defaults;';