IBM Using SQL Statements, for AS/400 SQL Programming manual and theDB2 UDB for AS/400 SQL

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 80
Image 80

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. Refe

DB2

UDB

for AS/400 SQL Programmingmanual and theDB2 UDB for AS/400 SQL

Referencefor more

information.

 

 

 

Refer toADTSthefor AS/400: Source Entry

Utilitymanual for

information about

how

SEU handles

SQL

statement

syntax

checking.

 

 

56 ILE RPG for AS/400 Programmer's Guide

Page 80
Image 80
IBM Using SQL Statements, for AS/400 SQL Programming manual and theDB2 UDB for AS/400 SQL, Reference for more