HPlogo MPE/iX Intrinsics Reference Manual > Chapter 8 Command Definitions (HPMERGEEND-LOGSTATUS)

LOADPROC

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

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:

ValueMeaning
1Search logon account SL, then system SL
2Search logon group SL, logon account SL, then system SL
3Search program file's account SL, then system SL
4Search 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 UNLOADPROC, HPFIRSTLIBRARY, HPGETPROCPLABEL, HPLOADCMPROCEDURE, HPLOADNMPROC, HPSETCCODE, HPSWITCHTOCM, HPSWITCHTONMNAME, HPSWTONMPLABEL, HPUNLOADCMPROCEDURE
Manuals Switch Programming Guide




KILL


LOCKGLORIN