All programs that are designed to run in an online DC environment should be written using fully reentrant coding techniques. This means that the program should never update its own storage. Any variable storage that your program needs to update should be in an area reserved for the exclusive use of a single task. Typically, you would define a DSECT to map this area. Several techniques can be used to achieve this goal. Two or more of these techniques can be combined in a single program.
A non-reentrant assembler routine can be used in an online DC environment under certain limited circumstances, but this is not recommended for reasons explained below.
This technique is not recommended because a small change in the program or online environment may cause the program to stop functioning correctly and potentially allow it to cause storage and data corruption.
|
Copyright © 2014 CA.
All rights reserved.
|
|