HP 3000 Manuals

SHOWVAR [ MPE/iX Commands Reference Manual Volume I ] MPE/iX 5.0 Documentation


MPE/iX Commands Reference Manual Volume I

SHOWVAR 

Displays specific variable names and their current values.  (Native Mode)

Syntax 

SHOWVAR [varid][,varid]...[,varid]

Parameters 

varid                 The name of the variable for which the current
                      value is to be displayed.

Operation Notes 

Table 2-27 shows the variables specified and their values.  It displays
information in the format 'VARIABLE NAME = value string'.

          Tables 2-27.  Specified Variable-ID/Result 

---------------------------------------------------------------------------------------------
|                   |                                                                       |
|    Variable-ID    |                               Displays                                |
|                   |                                                                       |
-                                                                                           -
|                   |                                                                       |
| (omitted)         | All variables and values that the user has set.                       |
|                   |                                                                       |
-                                                                                           -

|                   |                                                                       |
| @                 | All variables.                                                        |
|                   |                                                                       |
-                                                                                           -
|                   |                                                                       |
|  A,B,C            | Values for variables A, B, and C.                                     |
|                   |                                                                       |
-                                                                                           -
|                   |                                                                       |
|  B@               | All variables whose names begin with B.                               |
|                   |                                                                       |
---------------------------------------------------------------------------------------------

You may use the wildcard characters @, #, ?, and [ ] to specify a set or
range of variables or file names in many commands.

@                     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@ = all names that
                      include ABC anywhere in the name).

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

?                     Specifies one alphanumeric character.  A?# = all
                      three-character names that begin with A, followed
                      by an alphanumeric character, 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], then MPE/iX gives you a warning
                      that this specification is invalid.

                      @[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] =               Not valid in variables and
                                            would be flagged as an error.

Use 

This command may be issued from a session, job, program, or in BREAK.
Pressing Break aborts the execution of this command.

Examples 

To display two specific variables, enter:

     SHOWVAR firstvariable, secondvariable 

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

     SHOWVAR ?axval 

To display all variables created by the user with the SETVAR, INPUT, or
SETJCW command, or with the HPCIPUTVAR, PUTJCW, or SETJCW intrinsics,
enter:

     SHOWVAR 

To display all variables created currently in the variable table, those
created by the user and all predefined variables, enter:

     SHOWVAR @ 

Related Information 

Commands      DELETEVAR, INPUT, SETJCW, SETVAR, SHOWJCW

Manuals       Appendix A, "Predefined Variables in MPE/iX"

              Using the 900 Series HP 3000:  Advanced Skills 
              (32650-60039)



MPE/iX 5.0 Documentation