EMS Manual

EMS Manual426909-005
A-1
A
Example of Retrieving Event
Messages
This appendix presents a complete working example of a management application in
four versions: a TAL version, a TACL version, a COBOL version, and a C version. The
example includes a filter specification and a DDL file.
The four versions of the example have DDL and filter source files in common but
require distinct main source code files.
When you run this application at your terminal, it displays the event messages that
originated in a particular CPU of your system. The application prompts you for the CPU
number and reads and displays event messages as they are logged by the collector.
Execution of the application continues until you press the BREAK key at the terminal
and stop the application with a STOP command.
Topic Page
Running the TAL Version
A-2
Running the TACL Version A-2
Running the COBOL Version A-2
Running the C Version A-2
Overview of Application Logic A-3
DDL Source File A-4
Filter Source File A-5
TAL Source File A-5
TACL Source File A-14
COBOL Source File A-19
C Source File A-24
Program Modifications A-34
Note. In this appendix, the name or prefix MYAP designates a user application, subsystem,
and so on. Wherever you see MYAP, replace the complete name that includes it with the name
of the application or subsystem you want used in event retrieval.