LOADPROC [ MPE/iX Intrinsics Reference Manual ] MPE/iX 5.0 Documentation
MPE/iX Intrinsics Reference Manual
LOADPROC
NM and CM callable.
Dynamically loads a compatibility mode (CM) segmented library (SL)
procedure and any external procedures it has referenced.
Syntax
________________________________________________
| |
| I16 CA I16V I16 |
| idnum:=LOADPROC(procname,library,plabel);|
________________________________________________
Functional Return
idnum 16-bit signed integer (assigned functional return)
Returns an identity number required by the
UNLOADPROC intrinsic to unload the CM SL procedure
dynamically. If a loader error occurs (condition
code returns CCL (1)), the identity number
represents a CM loader error number.
Parameters
procname character array (required)
Passes the name of the procedure to be loaded. The
procedure name must be terminated with a blank and
be <= 15-characters; excess characters are
truncated without a warning message and any
procedure matching the truncated name is loaded.
library 16-bit signed integer by value (required)
Passes a value requesting a library search for the
procedure residing in your logon group:
Value Meaning
0 Search system SL only
1 Search logon account SL, then system SL
2 Search logon group SL, logon account SL, then system
SL
3 Search program file's account SL, then system SL
4 Search program file's group SL, program file's account
SL, and then system SL
plabel 16-bit signed integer by reference (required)
Returns the procedure's label. This is the
external CM plabel.
Condition Codes
CCE (2) Request granted.
CCG (0) Not returned.
CCL (1) Request denied. The value returned to idnum is a
CM loader error code.
Related Information
Intrinsics None
Commands None
Manuals Switch Programming Guide (32650-90014)
MPE/iX 5.0 Documentation