HPlogo Command Interpreter Access and Variables Programmer's Guide: Series HP 3000 Computer Systems > Chapter 3 Setting and Manipulating Variables

Using Predefined Variables

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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 specifications

HPLDEVIN, HPINTERACTIVE, HPSTDLIST

Error handling information

CIERROR, JCW, HPCIERRMSG, HPMSGFENCE, HPCIERR, HPFSERR

Job information

HPJOBFENCE, HPSESLIMIT, HPJOBTYPE, HPJOBNAME

System configuration information

HPCONSOLE, HPCPUNAME, HPSYSNAME

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,HPCWD, and HPPROMPT variables are displayed.

   :SHOWVAR HPPROMPT

   HPPROMPT = :





   :SHOWVAR HPPATH, HPREDOSIZE

   HPPATH = !HPGROUP,PUB,PUB.SYS

   HPREDOSIZE = 20



   :SHOWVAR HPCWD

   HPCWD = /SK72NM/PUB/somehfsdir

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).

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
Feedback to webmaster