Binder Manual (G06.27+, H06.04+, J06.03+)

BIND Commands
Binder Manual528613-004
3-9
ALTER Command
In the following example, NEWFILE contains BLOCK-1 from OBJFILE and all of
OLDFILE except any code block named BLOCK-1.
@FILE oldfile
@ADD * FROM oldfile
@ADD CODE block-1 FROM objfile, DELETE
@BUILD newfile
The following example shows the use of the ADD SPACE command to create a file
containing multiple code segments: code blocks from OLDFILE are in code
segment 0, those from SOMEFILE are in code segment 1, and those from
ANYFILE are in code segment 2.
@FILE oldfile
@ADD * FROM oldfile
@ADD SPACE
@ADD * FROM somefile
@ADD SPACE
@ADD * FROM anyfile
@BUILD newfile
ALTER Command
The ALTER command changes the attributes of code blocks and entry points in both
the include code block and the include entry point lists. Attributes that can be changed
are CALLABLE, MAIN, PRIVILEGED, and RESIDENT. You can change the MAIN
attribute only for TAL procedures and C functions.
You cannot use the ALTER command with nested code blocks (blocks with a lexical
level greater than one).
entry-list
specifies one or more primary or secondary entry points on the corresponding
include lists. See Table 3-2 for valid forms of entry-list.
alter-spec
is one of the following code attributes:
ALTER entry-list , alter-spec [ , alter-spec ] ...
alter-spec is one of:
CALLABLE { ON | OFF }
LIKE entry-name
MAIN { ON | OFF }
PRIV { ON | OFF }
RESIDENT { ON | OFF }