Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

CICS :: RE: How to find a CICS resource used in CICS ENQ command?

$
0
0
Author: Robert Sample
Posted: Fri Sep 30, 2016 6:50 pm (GMT 5.5)

From the manual:
Quote:
ENQ causes further execution of the task issuing the ENQ command to be synchronized with the availability of the specified resource; control is returned to the task when the resource is available.

A resource in the context of this command is any string of 1–255 bytes, established by in-house standards, to protect against conflicting actions between tasks, or to cause single threading within a program.
So your statement
Quote:
Say I ENQ a program name (PGMA)
is inaccurate. You do the ENQ on a resource (string) you called PGMA. That resource has NOTHING to do with any program in the CICS region named PGMA.
_________________
TANSTAAFL

The first rule of code reuse is that the code needs to be worth re-using.

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth


Viewing all articles
Browse latest Browse all 8500

Trending Articles