Binder Manual (G06.24+, H06.03+)

BIND Commands
Binder Manual528613-003
3-10
ALTER Command
CALLABLE {ON | OFF}
specifies whether privileged entry points are callable by nonprivileged
procedures. CALLABLE applies only to privileged code, and Binder
automatically sets PRIV ON for an entry point with CALLABLE ON.
LIKE entry-name
specifies that the entry points in entry-list have the same attributes as LIKE
entry-name, which must be on an include list. If LIKE occurs, it overrides any
preceding parameters of this ALTER command.
MAIN {ON | OFF}
specifies whether the entry points in entry-list have the MAIN attribute. You can
specify MAIN only for TAL and C code; COBOL85, Pascal, and FORTRAN
MAIN characteristics are set permanently at compilation time.
PRIV {ON | OFF}
specifies whether entry points in entry-list are run in privileged mode. If PRIV
ON is set, the procedure can be called only by procedures that also run in
privileged mode.
RESIDENT {ON | OFF}
specifies whether code blocks reside in main memory the entire time the
process is running. Binder automatically applies RESIDENT to the code block
containing the named entry point.
Examples
The following examples illustrate the syntax of the ALTER command.
In the following example, the attributes of the SUB^1 code block are changed to
match the attributes of SUB^2.
@ADD CODE sub^1 FROM objfile1
@ADD CODE sub^2 FROM objfile2
@ALTER sub^1, LIKE sub^2
The ALTER command in this example changes the RESIDENT attribute to ON for
all code blocks and entry points from the beginning of the include lists through
entry name SUB^5.
@ALTER * TO sub^5, RESIDENT ON
The next example changes the CALLABLE attribute to OFF for entry names
SUB^1 and SUB^5 through SUB^8 on the include lists.
@ALTER (sub^1, sub^5 TO sub^8), CALLABLE OFF