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

Watch Exit Programs

Watches provide the ability to have i5/OS call one or more user programs when a particular message is sent to the system operator, the history log, the job log of one or more jobs, or to a message queue. There is the Start Watch API (QSCSWCH) to begin a watch session, the End Watch API (QSCEWCH) to end a watch session, and the Watch for Event exit program capability. All three are discussed in the “Problem Management” category of System APIs under the subcategory “Monitoring.”

We’ll start by explaining how to write a watch exit program. Following that, you’ll see how to use the Start Watch API to associate a watch exit program with messages and message queues on the system. The parameter descriptions for a watch exit program ...

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