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

HPUNLOADCMPROCEDURE

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

NM callable only.

Unloads a target CM procedure whose plabel is obtained through the HPLOADCMPROCEDURE intrinsic.

Syntax



                       CA        U8V      I32
  HPUNLOADCMPROCEDURE (procname, library, status);

Parameters


procname

character array (required)

Passes as ASCII procedure name, left-justified and padded with blanks. The name can have a maximum of 16 characters.

library

8-bit unsigned integer by value (required)

Passes indicator of the CM segmented library to be searched. The valid values are as follows:

ValueMeaning
0Search the system SL only (default)
1Search the logon account SL, then the system SL
2Search the logon group SL, then the logon account SL, and then the system SL
3Search the program file's account SL, then the system SL
4Search the program file's group SL, then the program file's account SL, and then the system SL

status

32-bit signed integer by reference (optional)

Returns the status of the HPUNLOADCMPROCEDURE intrinsic call. If no errors or warnings are encountered, status returns 32 bits of zero. If errors or warnings are encountered, status is interpreted as two 16-bit fields.

Bits (0:16) comprise status.info. A negative value indicates an error condition, and a positive value indicates a warning condition. Refer to the MPE/iX Error Message Manual Volumes 1, 2 and 3 for a description of its value.

Bits (16:16) comprise status.subsys. The value represented by these bits defines the subsystem that set the status information. The subsystem identifier for HPUNLOADCMPROCEDURE is 105.

Operation Notes


Procedures are automatically unloaded when your process terminates. Use the HPUNLOADCMPROCEDURE intrinsic to unload before the process terminates.

Related Information


Intrinsics HPFIRSTLIBRARY, HPGETPROCPLABEL, HPLOADCMPROCEDURE, HPLOADNMPROC, HPSETCCODE, HPSWITCHTOCM, HPSWITCHTONMNAME, HPSWTONMPLABEL, LOADPROC, UNLOADPROC
Manuals Switch Programming Guide




HPSWTONMPLABEL


HPVOLINFO