Coding SQL Statements in an RPG Program This course also available online.
Author: Manta Technologies
Availability: Ships within 72 hours. SKU: 3096
Course Description: This course describes how to create an RPG SQL application. The course begins by describing the coding requirements for embedding SQL statements in an RPG program. This includes a discussion on how to detect and handle errors that occur during the processing of an SQL statement. The course then describes the CL commands used to compile an RPG program which includes embedded SQL statements.
Next, the course describes how to use an SQL cursor to access the records returned by a query and how to develop an application that executes SQL statements dynamically. This is followed by a description of the SQL statements used to support commitment control. The course ends with a discussion of SQL application performance and optimization.
After completing this course, you should be able to: Code an RPG program with embedded SQL statements Detect and handle errors that occur during the processing of an SQL statement Use SQLRPGLE and SQLRPG to compile a program with embedded SQL statements Use PDM to compile a program with embedded SQL statements Code the SQL statements used to define and manipulate an SQL cursor Code an RPG program that executes a dynamic SQL statement Use SQL statements to perform commit and rollback operations Optimize an SQL application
Audience: This course is intended for RPG programmers who will be developing SQL applications.
Prerequisites: This course assumes that you have a basic knowledge of DB2 UDB. You can satisfy this prerequisite by successfully completing the course Introduction to DB2 UDB. It also assumes that have a basic knowledge of SQL and can code SQL statements. You can satisfy this prerequisite by successfully completing the first course in this series, SQL Fundamentals. Finally, the course assumes that you are an experienced RPG programmer. If you are not familiar with both OPM and ILE program development procedures, it is recommended that you also take the course Introduction to iSeries Program Development.
Course Outline: Embedding SQL Statements in an RPG Program Compiling a Program with Embedded SQL Statements Using an SQL Cursor to Process Multiple Records Developing a Dynamic SQL Application SQL and Commitment Control Performance and Optimization Considerations
Course Details:
Length:
2 hours
Materials:
A Student Reference Guide is available for this series.
Publisher:
Manta
Coding SQL Statements in an RPG Program This course also available online.