The MODIFY-PROGRAM statement is used to modify the definition of a program in the open syntax file. This program must be the “current” object. The name given for the program must be unique with regard to all programs defined in the syntax file.
The MODIFY-PROGRAM statement is very similar to the ADD-PROGRAM statement.
MODIFY-PROGRAM |
NAME = *UNCHANGED / <structured-name 1..30> ,PRIVILEGE = *UNCHANGED / *ALL / *EXCEPT(...) / list-poss(64): <structured-name 1..30> *EXCEPT(...)
,COMMENT-LINE = *UNCHANGED / *NONE / *STD / <c-string 1..50 with-low> |
NAME = *UNCHANGED / <structured-name 1..30>
(External) program name, which is displayed in guided dialog. This name is freely selectable (it does not need to be the same as the module or phase name). In guided dialog, the operand form displays the current program name rather than *UNCHANGED.
PRIVILEGE = *UNCHANGED / *ALL / *EXCEPT(...) / list-poss(64): <structured-name 1..30>
Specifies the privileges assigned to the program.
PRIVILEGE = *ALL
All privileges currently defined and all subsequently defined privileges are assigned to the program.
PRIVILEGE = *EXCEPT(...)
With the exception of those defined with *EXCEPT(...), all privileges currently defined and all subsequently defined privileges are assigned to the program.
EXCEPT-PRIVILEGE = list-poss(64): <structured-name 1..30>
Specifies the privileges that are not assigned to the program.
PRIVILEGE = list-poss(64): <structured-name 1..30>
Only the privileges specified in this list are assigned to the program.
COMMENT-LINE =
Specifies which program comment line is to be displayed in the guided dialog. The program comment line appears at the top of guided dialog forms.
COMMENT-LINE = *UNCHANGED
No changes are made with respect to the program comment line.
COMMENT-LINE = *NONE
No program comment line is displayed.
COMMENT-LINE = *STD
The version and creation date of the program are displayed in the program comment line. Object modules (elements of type R) have no internal version, so the execution date is shown instead of the creation date.
COMMENT-LINE = <c-string 1..50 with-low>
String to be output as the program comment line.