This session will examine working examples of IBM SQL PL, for maintaining and inquiring upon a "master" file. The SQL PL statements will be segregated into a set of stored procedures, probably best described as a data layer (as opposed to a data tier in 3 tier architecture). The examples seek to show how one might separate data access and update logic from the high level language program, and facilitate broader ease of use and consistency across the enterprise (interactive, batch, web). We'll hit inquiry, delete, add and update. The update stored procedures include an optional one that does the equivalent of a CHAIN or pessimistic lock, if you are able to (and want to) control commit/rollback boundaries from within the high level language program.
Learning Objectives:
- See and understand standard Db2 for i SQL PL and stored procedure syntax that performs all of the DB access used within this data layer pattern example
- See differences in syntax and create steps for stored procedures using *LIBL and system naming (probably not applicable to all programming environments)