A brief overview of the interface follows.
For more information about the correlation between the &ZFDBK and &RETCODE system variables, see the &PPI verb description in the Network Control Language Reference Guide.
The following functions can be provided in the RPB function code field:
This function code allows an application program to determine if PPI is available and active in the system. A return code of 10 indicates that it is available.
This function code allows an application program to determine the status of a named receiver program. Return codes indicate whether the receiver is defined or not, and whether it is presently active or not.
This function code allows programs written in languages that do not support the ability to obtain ASCB or TCB addresses, the addresses of these control blocks. They are needed for other PPI calls.
This function code allows a program to define itself as a receiver. The program provides a unique 1 to 8 character receiver name and queue limit. Following this call, the receiver is defined, and other programs can send data to it.
The receiver can optionally be defined as authorized. This prevents programs that are not APF authorized from sending data to it.
This function code allows a defined receiver program to deactivate itself. The queue limit can be optionally altered. If a receiver program (Task) terminates without issuing this call, it is automatically deactivated.
This function code allows any program to send a generic alert to your product. It is sent to the defined receiver NETVALET, which receives these generic alerts in NMVT format, and forwards them on to NEWS.
This function code allows any program to send a data buffer to any defined receiver (active or inactive). The receiver will be notified if necessary.
The function code allows a receiver program to receive the next available data buffer. If no buffers are available, a return code informs the receiver.
This function code allows a program written in a language that does not support ECB waiting, to wait for data to arrive.
This function code, available only in this implementation of PPI, allows a program to obtain a unique 8 character ID. Although programs that only send data need not have a unique ID, all receivers must have a unique ID. This service is provided to allow a sender to obtain a unique ID so that it can register itself as a receiver for a two-way conversation.
| Copyright © 2010 CA. All rights reserved. |
|