CRTBNDRPG Command
──REQUIRED-PARAMETER──(─ ──┬ ┬─PREDEFINED-VALUE─── ─)─────────────────────────────────────
└┘─user-defined-value─
─ ──┬ ┬────────────────────────────────────────────────── ────────────────────────────────
└ ┘ ─OPTIONAL-PARAMETER──(─ ──┬ ┬─PREDEFINED-VALUE─── ─)─
└┘─user-defined-value─
Default values appear above the base line and do not need to be entered. They
are used when you do not specify a parameter. In the following sample, you can
enter DEFAULT-VALUE, OTHER-PREDEFINED-VALUE, or nothing. If you enter
nothing, DEFAULT-VALUE is assumed.
┌ ┐─DEFAULT-VALUE──────────
──PARAMETER──(─ ──┴ ┴─OTHER-PREDEFINED-VALUE─ ─)─────────────────────────────────────────
Optional values are indicated by a blank line. The blank line indicates that a value
from the first group (OPTIONAL-VALUE1, OPTIONAL-VALUE2,
user-defined-value
)
does not need to be entered. For example, based on the syntax below, you could
enter KEYWORD(REQUIRED-VALUE).
┌ ┐─OPTIONAL-VALUE1────
──PARAMETER──(─ ──┼ ┼──────────────────── ─── ──REQUIRED-VALUE─ ─)─────────────────────────
├ ┤─OPTIONAL-VALUE2────
└ ┘─user-defined-value─
Repeated values can be specified for some parameters. The comma (,) in the fol-
lowing sample indicates that each
user-defined-value
must be separated by a
comma.
┌ ┐─,────────────────────
──KEYWORD──(─ ───
┴───user-defined-value─ ─)─────────────────────────────────────────────
CRTBNDRPG Command
The Create Bound RPG (CRTBNDRPG) command performs the combined tasks of
the Create RPG Module (CRTRPGMOD) and Create Program (CRTPGM) com-
mands by creating a temporary module object from the source code, and then cre-
ating the program object. Once the program object is created, CRTBNDRPG
deletes the module object it created. The entire syntax diagram for the
CRTBNDRPG command is shown below.
Job: B,I Pgm: B,I REXX: B,I Exec
406 ILE RPG for AS/400 Programmer's Guide