Previous Topic: ENFDNAME

Next Topic: CAS9DCMR - DCM Mapper

Compound REXX Variables

ENFC also sets a compound REXX variable with the values of the data elements that were returned. The following variables are set:

ENFDATA.enfevent.0

The number of data elements returned for the event. The value for enfevent that was set previously is substituted in the variable name. Thus, if the event that occurred was JOBTERM, you could also use the name ENFDATA.JOBTERM.0.

ENFDATA.enfevent.n

An array of names of the data elements that were returned, where n can range from 1 to the number returned in ENFDATA.enfevent.0.

ENFDATA.enfevent.dataname

The 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

Also note that for REXX users, all the variables that are set for use by the old CLIST language are also set for REXX users. Thus, REXX variables JOBTERM, JOBNUM, and COMPCODE as well as ENFDNUM and ENFDNAME are set.

Note: If you press Attention (PA1) while a LISTEN is active, ENFC performs its own ENFC TERM function and returns the following to the CLIST: