The initial activation of the Confirm activity
The Confirm activity is activated for the first time after SAL002 issues the RUN ACTIVITY command.
On this initial activation, CON001:
- Defines an input event for which the activity might then be activated.
- Obtains the activity identifier which uniquely identifies this activity-instance.
- Saves the name of the input event and the activity identifier in a pending file. The record in the pending file is given a key—which could, for instance, be the customer reference number which has been used throughout to identify this instance of the Sale business transaction.
- Returns without completing.
Initialization..
EXEC CICS DEFINE INPUT EVENT(User-Ready)
RESP(data-area) RESP2(data-area) END-EXEC.
EXEC CICS ASSIGN ACTIVITYID(Act-Id)
RESP(data-area) RESP2(data-area) END-EXEC.
MOVE User-Ready TO Usr-Event
MOVE LENGTH OF Data-Record TO Data-Record-Len.
EXEC CICS WRITE FILE('PENDING')
FROM(Data-Record) LENGTH(Data-Record-Len)
RIDFLD(User-Reference)
RESP(data-area) RESP2(data-area) END-EXEC
.