Valid in: ESQL
The Enddata statement terminates retrieval of long varchar or long byte data in a data handler routine. Long varchar and long byte data is retrieved using the get data statement.
The Enddata statement has the following format:
EXEC SQL ENDDATA;
All users are permitted to use this statement.
For examples of the Enddata statement in the context of a data handler routine, see the chapter "Working with Embedded SQL."