This appendix provides supplementary examples of application code that is not SQL. In Chapter 5, "Understanding and Using Cursors and Result Sets," the notion of returning result sets to an application program from an SQL procedure was introduced. In Chapter 8, "Nested SQL Procedures," the notion of SQL stored procedures processing result sets was introduced.
This appendix discusses how an application program, written in C or Java, can process results sets that would be returned by a stored procedure. Additionally, examples of how Java stored procedures can process result sets are also provided. This information is particularly useful for the iSeries platform, where SQL stored procedures cannot process result sets.