Previous Topic: EBCXMTRN Statement ParametersNext Topic: Sample JCL


Macro Coding Example

Assume that two CA View systems have been created.

The databases for the two systems have high-level names of VIEW.SYSTEM1 and VIEW.SYSTEM2. A user must enter transaction identifier VW1 for the first system and VW2 for the second. The source for program EC1XMCTR contains the following control statements:

EBCXMOPT MSGLVL=CRIT,USERMAX=50
EBCXMTRN TRANID=VW1,INDEX=VIEW.SYSTEM1
EBCXMTRN TRANID=VW2,INDEX=VIEW.SYSTEM2
EBCXMTRN TYPE=GEN
END

EBCXMTRN TYPE=GEN must be the last statement before the END. This statement causes the EBCXMCTR CSECT to be generated.