Author: Robert Sample
Posted: Fri Sep 30, 2016 6:50 pm (GMT 5.5)
From the manual:
So your statement
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
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. |
Quote: |
Say I ENQ a program name (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