The ADD-PROGRAM statement is used to define a program in the syntax file being processed. The names given for the program must be unique with regard to all other names defined in the syntax file.
ADD-PROGRAM |
NAME = <structured-name 1..30> ,INTERNAL-NAME = *STD / <alphanum-name 1..8> ,PRIVILEGE = *ALL / *EXCEPT(...) / list-poss(64): <structured-name 1..30> *EXCEPT(...)
,COMMENT-LINE = *NONE / *STD / <c-string 1..50 with-low> |
NAME = <structured-name 1..30>
(External) program name which is shown in guided dialog. This name is freely selectable (and need not agree with the module or phase name).
INTERNAL-NAME = *STD / <alphanum-name 1..8>
Internal program name. This cannot be changed. The program specifies it to SDF when requesting statement input (see the CMDRST and CMDTST macros). Unless otherwise specified, SDF-A takes the first eight characters (omitting hyphens) of the external program name specified for the NAME operand.
PRIVILEGE =
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 lines are to be displayed in the guided dialog. The program comment line appears at the top of guided dialog forms.
COMMENT-LINE = *NONE
No program comment lines are 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.