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:
  1. Defines an input event for which the activity might then be activated.
  2. Obtains the activity identifier which uniquely identifies this activity-instance.
  3. 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.
  4. 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
.


dfhp9c0044.html | Timestamp icon Last updated: Monday, 5 June 2017