Run-unit scoped elements have storage that can be shared across modules. Examples of shared storage are:
Within a run unit, every module has a lock, and ILE COBOL ensures that only one copy of a module is running at a time in the run unit. If you have resources with run-unit scope, it is your responsibility to synchronize access to that data from multiple threads using logic in the application. You can do one or both of the following:
http://www.as400.ibm.com/infocenter/
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.