HPlogo Interprocess Communication: Programmer's Guide: HP 3000 MPE/iX Computer Systems > Chapter 2 IPC Using Job Control Words and Other Variables

Variable Intrinsics

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The intrinsics used for manipulating variables are the following:

HPCIPUTVAR

The HPCIPUTVAR intrinsic is used to set a variable. The intrinsic call could be:


   HPCIPUTVAR(VARNAME,STATUS,KEYWORD,KEYVALUE); 

where VARNAME is a valid MPE/iX variable name. (Variable names can be up to 255 characters. The first character of the name must be an alphabetic letter or the underbar character. Letters, numbers, and underbars are allowed in the name.) The status of the procedure is indicated in the STATUS parameter.

The KEYWORD parameter indicates the variable type (that is, what is returned in KEYVALUE). These are:

1

Integer value

2

String value

3

Boolean variable

HPCIGETVAR

The HPCIGETVAR intrinsic scans the variable table for a given variable and returns its value. The intrinsic call could be:


   HPCIGETVAR(VARNAME,STATUS,KEYWORD,KEYVALUE); 

where VARNAME is a valid MPE/iX variable name. The status of the procedure is returned in STATUS. The KEYWORD parameter has the same meaning as in HPCIPUTVAR; refer to the description above.

HPCIDELETEVAR

You use HPCIDELETEVAR to remove a variable from the variable table. The intrinsic call could be:


   HPCIDELETEVAR (VARNAME,STATUS); 

where VARNAME is a valid MPE/iX variable name. The status of the procedure is returned in STATUS.

Note that there is no DELETE intrinsic specifically for Job Control Words. Since JCWs are a type of variable, you can use the HPCIDELETEVAR intrinsic to delete a JCW.

For more information and full syntax descriptions for the above intrinsics, consult the MPE/iX Intrinsics Reference Manual (32650-90028).

Feedback to webmaster