HP 3000 Manuals

Variable Commands [ Interprocess Communication:Programmer's Guide ] MPE/iX 5.0 Documentation


Interprocess Communication:Programmer's Guide

Variable Commands 

You can also manipulate variables by using various MPE XL commands.
These are the following:

:SETVAR 

This command can be used to set or alter a variable (including JCWs) in
the variable table.  The syntax is as follows:

     :SETVAR varname, expression 

The varname must be a valid MPE XL variable name, either of an existing
variable or of a new one.  A space or comma must precede the expression 
parameter, if you use it.  Expression can be a string, an integer, a
Boolean value, an expression, or the name of another variable.  SETVAR
always evaluates expression; certain operators can be used in this
parameter, as well as numeric values.

:SHOWVAR 

Use this command to display a selected variable or variables from the
variable table.  This command displays JCWs as well as standard
variables.

Entering :SHOWVAR without parameters shows you a list of all variables
and values that you have set.  You can enter a variable name (or more
than one, separated by commas) to see the variable's value.

You can also use "wild card" characters such as ?, #, [m-n], and @.
Entered by itself, @ causes :SHOWVAR to display a list of all variables,
both user-created and predefined.  Or you can use it in a variable name
to signify "zero or more alphanumeric characters."

:DELETEVAR 

This command enables you to delete any user-created variable from the
variable table.  Again, you can delete JCWs as well as standard variables
by using this command.

The one required parameter is varname, the name of the variable to be
deleted.  You may enter more than one varname at a time, separated by
commas.  Predefined variables cannot be deleted.  The same wild card
characters allowed in :SHOWVAR are also valid here.

For more information and syntax descriptions for the above commands,
refer to the MPE XL Commands Reference Manual (32650-90003).


MPE/iX 5.0 Documentation