CA Sysview is supplied with an application programming interface (API) that can be used in TSO/E REXX to obtain information from CA SYSVIEW displays.
TOD Rules in OPS/MVS can be used to invoke REXX programs and these REXX can invoke the SYSVIEW API via an
ADDRESS SYSVIEWE command.
The XVEXTRAC sysview command is used to extract data from SYSVIEW into REXX EXEC variables.
For example, it is possible to use the Sysview API in a REXX and use the output of the ACTIVITY command to create a variable
(otyp in the following sample) with the value of the TYPE field.
This can be done with the following code:
l = 0
'C(ACTIVITY *,TSU;SORT LASTTRANS D)'
'C(XVEXTRAC DATA TYPE otyp.)'
.. More REXX code ..