HPlogo MPE/iX Commands Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3  Command Definitions C-E

DELETEVAR

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Deletes one or more MPE/iX variables. (Native Mode)

Syntax

DELETEVAR varname [,varname] ... [,varname]

NOTE: This command follows the optional MPE/iX command line syntax. Refer to "Optional Format for MPE/iX Commands" at the beginning of this chapter.

Parameters

varname

The name of the variable to be deleted.

Operation Notes

Deletes a specific MPE/iX variable, or all variables specified by a pattern. If you specify more than one varname, you must separate them with commas.

You may use the wildcard characters, @, #, ?, and [ ] to specify a set or range of values.

@

Specifies zero or more alphanumeric characters, or the underbar character (_). Used by itself, it specifies all possible combinations of such characters. Used with other characters it indicates all the possible names that include the specified characters. @ABC@ specifies all names that include ABC anywhere in the name.

#

Specifies one numeric character. A###@ specifies all names that begin with A followed by any three digits, followed by any combination of 0 to 251 alphanumeric (or underbar) characters.

?

Specifies one alphanumeric character. A?# specifies all three-character names that begin with A, followed by an alphanumeric, followed by a digit.

[ ]

Specifies a set or range of characters. The set may appear anywhere in the name. This range specification is not case sensitive and, therefore, [A-K] is the same as [a-k]. If you specify a null set such as [k-a], MPE/iX reports an error.

@[abc]@# =

All names containing A, B, or C and ending in a single digit.

[a-k]@ =

All names that begin with any one of the letters A through K.

[n-a] =

Is not valid and is flagged as an error.

Use

This command is available in a session, job, program, or in BREAK. Pressing Break has no effect on this command.

Examples

To delete two specific variables, enter:

 DELETEVAR firstvariable, secondvariable

To delete all variables beginning with a single alphabetic character and ending with the characters axval, enter:

 DELETEVAR ?axval

To delete all variables created by the user, enter:

 DELETEVAR @ 

To delete a range of variables, for example, those that begin with the letters P, Q, R, S, or T followed by zero or more characters that end with the string module. In the following example variables such as PMODULE, QMODULE, RMODULE, SMODULE, TMODULE, and TIME_MODULE are all deleted by entering:

 DELETEVAR [P-T]@MODULE

MPE/iX predefined variables, which are listed in appendix A, cannot be deleted.

To delete all variables beginning in T and ending in two digits such as TMP11, T25, TMP_237 but not T2, enter:

 DELETEVAR T@##

Related Information

Commands

SETJCW, SETVAR, SHOWJCW, SHOWVAR

Manuals

Using the HP 3000 Series 900: Advanced Skills

Appendix A, "Predefined Variables in MPE/iX"

Feedback to webmaster