FULLYEAR Command | Basic Teradata Query - FULLYEAR (FY) - Basic Teradata Query

Basic Teradata® Query Reference - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Basic Teradata Query
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2025-04-02
dita:mapPath
gxl1691484661681.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
psp1479308573013
Product Category
Teradata Tools and Utilities

Purpose

This control enables users to specify whether to use a four-digit year format (YYYY) in a report's header, footer and title lines. The default is a two-digit year format (YY).

Syntax



Shorthand Syntax (Interactive Mode Only)
Command Shorthand
FULLYEAR FY

Usage Notes

If the FULLYEAR command is used without specifying ON or OFF, BTEQ sets FULLYEAR to ON.

FULLYEAR only affects the date in the header, footer, and title lines. The date data returned from the SQL is not affected by the FULLYEAR command.

If the FULLYEAR command has not been used, its value is OFF by default.

The DEFAULTS command resets FULLYEAR setting to OFF.

Example 1 – FULLYEAR

Enable a four-digit year format to comply with the year 2000 format as follows:

.SET FULLYEAR ON

Example 2 – FULLYEAR instigated by a macro

The FULLYEAR command in an SQL macro appears as follows:

ECHO '.SET FULLYEAR ON';