O'Reilly logo

APIs at Work, Second Edition by Ron Hawkins, Doug Pence, Bruce Vining

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Triggers

Triggers are one type of exit program that i5/OS supports. Triggers allow you to define a set of actions that are to be run automatically when a change or read operation is performed on a specified database file. You specify the actions to be performed by writing a program in a language such as RPG, COBOL, C, or CL. The change operation can be a WRITE, an UPDATE, or a DELETE in a high-level language application or utility, such as interactive SQL or the Data File Utility. Likewise, the read operation can be a READ in an application program or utility.

An exit program can be thought of as a retrieve API in reverse. Similar to retrieve APIs, your program typically receives information from the system in structures passed as discrete parameters. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required