Monday, January 18, 2010

Task control commands in CICS

Task Control: We have some commands to control the Task, and command are given below.
- SUSPEND
- ENQ
- DEQ

SUSPEND:
- After the execution of higher priority tasks, control will be returned to the suspended task

EXEC CICS
SUSPEND
END-EXEC

ENQ:
- To gain exclusive control over a resource

Syntax:
EXEC CICS ENQ
RESOURCE(data area)
[LENGTH(data value)]
[NOSUSPEND]
END-EXEC

DEQ:
- To free the exclusive control from the resource gained by ENQ

Syntax:
EXEC CICS DEQ
RESOURCE(data_area)
[LENGTH(data_value)]
[NOSUSPEND]
END-EXEC.

No comments:

Computers Add to Technorati Favorites Programming Blogs - BlogCatalog Blog Directory