Skip to main content

##sql

Invokes a specified Embedded SQL statement at runtime.

Description

This macro preprocessor directive invokes a specified Embedded SQL statement at runtime. It has the form:

##sql(SQL-statement)

where SQL-statement is a valid Embedded SQL statement. The ##sql preprocessor directive is exactly equivalent to the &SQL Embedded SQL marker. In both cases, SQL code enclosed in the parentheses is compiled at runtime (first execution), not when the enclosing routine is compiled. Refer to Compiling Embedded SQL for further details.

FeedbackOpens in a new tab