SPP2002 Warning, Statement beginning on line <line>:Variable name <name> has already been declared - Preprocessor2 for Embedded SQL

Teradata Preprocessor2 (SPP Prefix) Messages

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Preprocessor2 for Embedded SQL
Release Number
15.xx, 16.xx, 17.xx, 20.xx
Published
June 2020
Language
English (United States)
Last Update
2023-11-20
lifecycle
Latest
Product Category
Teradata Tools and Utilities

SPP2002 Warning, Statement beginning on line <line>:Variable name <name> has already been declared

Language:

COBOL, PL/I

Possible Cause:

The host variable has already been declared prior to this declaration.

Possible Solution:

Insure uniqueness of the host variable. This warning is issued to remind the programmer that the first declaration of the variable is the one used by the precompiler. Multiple declarations are allowed due to the scoping rules of PL/I, but the precompiler does not honor the scope of the variable.