SPP4041 Error at line <line>, column <column>:EXEC SQL <statement> is not legal <context> - 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

SPP4041 Error at line <line>, column <column>:EXEC SQL <statement> is not legal <context>

Language:

C, COBOL, PL/I

Possible Cause:

The named SQL statement must not be included in the identified context.

Possible Solution:

Move the offending statement to the correct context.