To change the plan options in the program object without editing and recompiling the program, you can enter the ALTER PROGRAM ENVIRONMENT command with the appropriate option.
The format of the ALTER PROGRAM ENVIRONMENT command is:
ALTER PROGRAM name [VERSION ver] ENVIRONMENT [option]
For a complete explanation of the ALTER PROGRAM ENVIRONMENT syntax, see the Command Reference Guide.
You can change all of the options listed in Setting Plan Options earlier in this chapter with this command, except for the authorization ID and the SQL mode. You can also specify the CLOSE option on the ALTER PROGRAM ENVIRONMENT command to determine when to close the plan. Values that you can enter for the CLOSE option follow:
Closes the plan at the end of the run-unit or CICS job. CA does not recommend it for online programs since you cannot recompile the program until the plan is closed.
Closes the plan after each database transaction.
If you want to change more than one option, you can enter the ALTER PROGRAM ENVIRONMENT command without specifying any options. This displays a fill-in showing the current options from the program object and the CLOSE option. The current authorization ID and SQL mode also display, but you cannot change it.
Note: Do not execute this command for a program that was the object of a CREATE MODULE command. If you need to alter the plan options for a program that is executed from a load module, you must enter the ALTER PROGRAM ENVIRONMENT command before creating the load module. You can rebind the plan after you create the load module.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|