CRITICAL
Rule Definition
Objects that are allocated to you should be deallocated as soon as you are finished using them because other users may need those objects. However, allocated objects are automatically deallocated at the end of the routing step.
Remediation
Try to deallocate the objects as soon as possible.
Violation Code Sample
ALCOBJ command will allocate object and will lock the object till the end of the scope. User needs to use explicitly release the allocation by using DLCOBJ.
ALCOBJ OBJ((LIBY/DATAAREAX *DTAARA *EXCL ))
SCOPE(*THREAD)
Fixed Code Sample
Please refer for the below link,
https://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/cl/alcobj.htm
Related Technologies
Technical Criterion
Complexity - Algorithmic and Control Structure Complexity
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.