Exception-initiated monitoring without MPFLSTxx functions
If it is inconvenient to use MPFLSTxx events to trigger your GUI connections, an alternate "fast path" method can be implemented with little effort:
In procedure ERBR3WFX, modify the statement:
SELECT PGM(ERBCSWTO) PARM(wtomsg)
with
the name of your own module (for example, FRMFCSC): SELECT PGM(FRMFCSC) PARM(ERBCSGUI)
Module
FRMFCSC builds up an internal buffer with the command string: F RMFCSC,EX:ERBCSGUI
Afterwards,
the command string is passed to the system command interface SVC34
(MGCR macro) for execution. In doing so, module FRMFCSC (instead of
ERBCSACT) forces the RMFCSC tasks to initiate the PWS connections.
Thus, Scenario II can easily be adapted to work without involvement
of MPFLST functions and members.