HP 3000 Manuals

Using Predefined Variables [ Command Interpreter Access and Variables Programmer's Guide ] MPE/iX 5.0 Documentation


Command Interpreter Access and Variables Programmer's Guide

Using Predefined Variables 

The CI provides predefined variables, giving the user access to system
information.  The names and default values are preset in the session
variable table.

The following list categorizes the type of system information available
and some of the predefined variables that access it.  (A listing of
commonly used predefined variables is provided in Appendix A. Refer to
the MPE/iX Commands Reference Manual  (32650-90003) for a listing of all
predefined variables available.)

Directory information     HPACCOUNT, HPGROUP, HPUSER, HPCWD

User's capabilities       HPUSERCAP, HPUSERCAPF, HPACCTCAP, HPGROUPCAP

User's environment        HPREDOSIZE, HPPATH, HPPROMPT, HPERRDUMP,
                          HPTYPEAHEAD, HPPIN, HPFILE

Input/output              HPLDEVIN, HPINTERACTIVE, HPSTDLIST
specifications

Error handling            CIERROR, JCW, HPCIERRMSG, HPMSGFENCE, HPCIERR,
information               HPFSERR

Job information           HPJOBFENCE, HPSESLIMIT, HPJOBTYPE, HPJOBNAME

System configuration      HPCONSOLE, HPCPUNAME, HPSYSNAME
information

System date and time      HPDATE, HPDATEF, HPTIMEF, HPYEAR

Displaying Values 

A list of all variables and their current values can be displayed with
the SHOWVAR command followed by the wildcard character @.  Both
predefined variables and any user-defined variables in the session table
are displayed.

     :SHOWVAR @

As with user-defined variables, the current value of specific predefined
variables can be displayed using the SHOWVAR command and the variable
name.  In the following example, the HPREDOSIZE, HPPATH, [REV
BEG]HPCWD[REV END], and HPPROMPT variables are displayed.

     :SHOWVAR HPPROMPT
     HPPROMPT = :

     :SHOWVAR HPPATH, HPREDOSIZE
     HPPATH = !HPGROUP,PUB,PUB.SYS
     HPREDOSIZE = 20
     [REV BEG]
     :SHOWVAR HPCWD
     HPCWD = /SK72NM/PUB/somehfsdir[REV END]

[REV BEG]

In this last example, /SK72NM/PUB is an /ACCOUNT/GROUP path (in
hierarchical file system) that corresponds to an MPE/iX GROUP.ACCOUNT,
and somehfsdir is a directory (below PUB).[REV END]

Modifying Values 

No predefined variables can be deleted by the user, however, some of them
are modifiable.  (Refer to the MPE/iX Commands Reference Manual  
(32650-90003) for a list of predefined variables that cannot be
modified.)  You can change the default setting of any modifiable
predefined variable to better suit your needs.  The following example
alters the CI prompt and the size of the command history stack using the
SETVAR command.

     :SHOWVAR HPPROMPT
     HPPROMPT = :
     :SETVAR HPPROMPT "==>"
     ==>

     :SHOWVAR HPREDOSIZE
     HPREDOSIZE = 20
     :SETVAR HPREDOSIZE 25
     :SHOWVAR HPREDOSIZE
     HPREDOSIZE = 25



MPE/iX 5.0 Documentation