You can optimize the way parameters are handled as follows:
It is always slower to access linkage items than Working-Storage Section items. If a Linkage Section item is used frequently, it is faster to move it into a Working-Storage Section when the program is entered and move it back to the Linkage Section if necessary before returning to the calling program. Instead of the Linkage Section item, the Working-Storage Section item should then be accessed throughout the program.
If a linkage parameter is optional, you can detect its presence using a statement such as:
IF address of linkage-item NOT = null
Related Topics: