17.00 - SPP2002 Warning, Statement beginning on line <line>:Variable name <name> has already been declared - Teradata Tools and Utilities

Teradata Preprocessor2 (SPP Prefix) Messages

prodname
Preprocessor2 for Embedded SQL
Teradata Tools and Utilities
vrm_release
17.00
created_date
June 2020
category
Programming Reference
featnum
B035-1096-PP2

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.