RNF7539

Data areas should be unlocked explicitly when NOMAIN is specified.

10

Cause . . . . . : When the NOMAIN keyword is specified on the Control specification, data areas do not get unlocked automatically. OUT or UNLOCK operations are recommended for all data areas that may be locked during module initialization, or by procedures in the module.

Recovery . . . : One solution is to create a procedure to be called at the end of the application that unlocks any locked data areas using the OUT or UNLOCK operations. Another solution is to unlock data areas in the same procedure that locks them.