ENFC also sets a compound REXX variable with the values of the data elements that were returned. The following variables are set:
Number of returned data elements for the event. The value for enfevent that was set previously is substituted in the variable name. Thus, if the event that occurred is JOBTERM, you could also use the name ENFDATA.JOBTERM.0.
Array of names of the data elements that were returned, where n can range from 1 to the number returned in ENFDATA.enfevent.0.
Value of the data element that was returned. For example, if a JOBTERM event occurred and returned the three data elements:
The following variables are set:
Variable |
Value |
---|---|
ENFDATA.JOBTERM.0 |
3 |
ENFDATA.JOBTERM.1 |
JOBNAME |
ENFDATA.JOBTERM.2 |
JOBNUM |
ENFDATA.JOBTERM.3 |
COMPCODE |
ENFDATA.JOBTERM.JOBNAME |
CICSPROD |
ENFDATA.JOBTERM.JOBNUM |
STC00100 |
ENFDATA.JOBTERM.COMPCODE |
602 |
For the REXX users, all the variables that are set for use by the old CLIST language are also set for REXX users. Thus, the REXX variables JOBTERM, JOBNUM, and COMPCODE and ENFDNUM and ENFDNAME are set.
Note: If you press Attention (PA1) while a LISTEN is active, ENFC performs its own ENFC TERM function and ENFC returns these values to the CLIST:
Copyright © 2014 CA Technologies.
All rights reserved.
|
|