IBM Data Server Client Packages Version 10.1

Embedded SQL statements in FORTRAN applications

You can include embedded SQL statements in FORTRAN applications. Before you can use the SQL statements, you must setup and enable your application to support embedded SQL.
Embedded SQL statements in FORTRAN applications consist of the following three elements:
Correct FORTRAN Element Syntax
Statement initializer
EXEC SQL
Statement string
Any valid SQL statement with blanks as delimiters
Statement terminator
End of source line.

The end of the source line serves as the statement terminator. If the line is continued, the statement terminator will then be the end of the last continued line.

For example:
   EXEC SQL SELECT COL INTO :hostvar FROM TABLE 
The following rules apply to embedded SQL statements in FORTRAN applications: