Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Examples of Multi-Trans Scheduling z/OS MVS Programming: Writing Transaction Programs for APPC/MVS SA23-1397-00 |
|
The following are some pseudocode examples of TPs that use multi-trans scheduling. When the TP is initiated, the shell code gets control first, calls Get_Transaction to obtain the first request, and repeats the call to get subsequent transactions. For example:
You can code a transaction program to function as either standard or multi-trans,
depending on the schedule type specified in the TP profile. To determine which
TP schedule type it was invoked with, a transaction program can use the information
extract service (see Extract_Information), and then do the appropriate processing.
For example:
As an alternative to calling the Extract_Information service, the multi-trans shell can issue the Get_Transaction service in any case and continue with standard or multi-trans processing based on the return code from Get_Transaction. For example:
The multi-trans program can return to its shell environment by calling
the Return_Transaction service between conversations, to clean up resources
or allocate new ones if necessary. For example:
|
Copyright IBM Corporation 1990, 2014
|