EXECUTE – Commit updates to the Current Plan

Use the EXECUTE request to update the current plan after one or more modify, insert, or delete current plan requests are completed.

Note: If you issue Workload Automation Programming Language commands through the server by using REST APIs or Zowe™ commands and you also issue additional REST API or ZOWE commands, ensure that you set both OPTIONS SERVER(Y) and EXECUTE to commit updates to the CP.

EXECUTE [MCPBLK]

If you are changing more than one current plan occurrence or current plan workstation before an EXECUTE request, you must complete all changes to one occurrence or workstation before changing the other. If you do not complete all changes to one occurrence or workstation, a message is issued and all the changes made since the last EXECUTE request are reset.

For changes to current plan resources, CSR, no EXECUTE is required.

An EXECUTE request is performed automatically by Workload Automation Programming Language before termination, if updates to the current plan were detected and OPTIONS EXECUTE(AUTO) was specified (this is the default).

Note: The resource can be only MCPBLK, therefore is optional. Any keywords you specify on an EXECUTE statement other than MCPBLK are ignored.
Return codes are:
0
The request was successful.
8
The request was not successful. An error message is issued to the message log data set.