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

Starting a Watch

Having looked at the FIG10_2 program, let’s now look at the Start Watch API, QSCSWCH. It is used to associate program FIG10_2 with the sending of message CPF2456 to the system operator message queue. The parameter descriptions for QSCSWCH are listed in Table 10.2.

Table 10.2. The Start Watch API (QSCSWCH)
ParameterDescriptionTypeSize
1Session IDInputChar(10)
2Started Session IDOutputChar(10)
3Watch ProgramInputChar(20)
4Watch for MessageInputChar(*)
5Watch for LIC Log EntryInputChar(*)
6Error CodeI/OChar(*)

The first parameter, Session ID, allows you to name the watch. This name will be displayed on commands such as Work with Watches (WRKWCH), used on APIs such as End Watch (QSCEWCH), and passed to the watch exit program at run time. ...

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