A SERVICE OF

logo

Using SQL Statements
...+....1....+....2....+....3....+....4....+....5....+....6....+....7..
C
C (ILE RPG calculation operations)
C
C/EXEC SQL (the starting delimiter)
C+
C+ (continuation lines containing SQL statements)
C+
.
.
.
C/END-EXEC (the ending delimiter)
C
C (ILE RPG calculation operations)
C
Figure 30. SQL Statements in an ILE RPG Program
You must enter a separate command to process the SQL statements. Refer to the
DB2 UDB for AS/400 SQL Programming
manual and the
DB2 UDB for AS/400 SQL
Reference
for more information.
Refer to the
ADTS for AS/400: Source Entry Utility
manual for information about
how SEU handles SQL statement syntax checking.
56 ILE RPG for AS/400 Programmer's Guide