SPP4022 Error, Statement beginning at line <line>:Macro may not be used with EXEC; it <error info> - 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

SPP4022 Error, Statement beginning at line <line>:Macro may not be used with EXEC; it <error info>

Language:

C, COBOL, PL/I

Possible Cause:

Macro which has multiple statements or returns data has been submitted via an EXEC request.

Possible Solution:

Change the static EXEC request to use a macro cursor execution sequence.