System Debug Reference Manual (32650-90888)
172 Chapter5
System Debug Command Specifications Fx-LOG
FOREACH
This command dynamically loads a NM procedure from any NM library. The complete
executable System Object Module containing the named procedure is loaded. This
command is implemented by calling the HPGETPROCPLABEL intrinsic. (Refer to the MPE/iX
Intrinsics Reference Manual for additional information.) If no error message is printed, the
user can assume the command succeeded. The LOADINFO command may be used to verify
that the library was loaded.
Parameters
procedurename
The name of the procedure to be loaded.
library_file
Any valid NM library file from which the procedure is to be loaded.
IGNORECASE If IGNORECASE is specified, a case-insensitive search is performed for the
program file. The default is NOIGNORECASE.
Examples
$nmdebug > findproc libsort testlib.test
$nmdebug >
Dynamically load the procedure libsort from the file TESTLIB.TEST
Limitations, Restrictions
This routine functions by calling the FINDPROC intrinsic. Refer to the
MPE XL Intrinsics
Reference Manual
(32650-90028) for additional information.
FOREACH
Each time a FOREACH command is executed,
name
is set to the next expression value in
value_list
prior to the execution of
cmdlist
. Execution ends when there are no more
expression values in the
value_list
.
Syntax
FOREACH
name value_list command
FOREACH
name value_list
{
cmdlist
}
Parameters
name
The name for the control variable that is set to the next expression value
in
value_list
. A local variable is declared automatically, and it can be
referenced with the
cmdlist
.
An optional type specification can be appended to the variable name, in