Generated from C.65.00 /SYSADMIN/PUB/MYCICAT last modified on Sun Aug 29 15:08:37 2004
Assigns values to MPE/iX variables.
SETVAR varname{<space>} expression {, } {; }
varname The variable that is to be set to a value. expression The expression that is evaluated and assigned to varname.
This command assigns values to MPE/iX variables. Variable names may be any combination of letters and numbers plus the underbar character, up to a total of 255 characters. Variables must start with a letter or the underbar character. The expression parameter may be an MPE/iX expression, a Boolean, integer, or string value, or the name of another variable. If expression consists of operands and operators that MPE/iX accepts ('abc' + 'cd'), (2*5+1, etc.) and the like, SETVAR will evaluate it. o To see a list of expression evaluator functions, type FUNCTIONS at the HELP prompt. Or, you may enter an individual function name for more specific information. o To see a list of FINFO options, type FINFO at the HELP prompt. o To see a list of predefined MPE/iX variables, type VARIABLES at the HELP prompt. Or, you may enter an individual variable name for more specific information. The allowed operands are any variable, integer constant (decimal <default>, hexadecimal "$", or octal "%"), quoted string constant, the Boolean constants TRUE and FALSE, or the JCW mnemonics as defined in the SETJCW command. Note that all variables are global, so the CI variable name should not be the same as the JCW name that is being used or the operation of the code that uses that JCW is affected. Compound logical expressions can be formed using the AND, NOT, XOR, and ,OR logical operators, and nested within parentheses. The Boolean value of the keyword TRUE or FALSE will be overridden if there is a variable of the same name. For instance the following SETVAR command will store the string value 'ABC' in X: SETVAR TRUE 'ABC' SETVAR X TRUE SETVAR may be used to set the Command Interpreter's search path (HPPATH), the Command Interpreter's prompt (HPPROMPT), and all other variables that the user can alter. Use SHOWVAR to see all the variables and their values. Issuing a SHOWVAR @ will cause the display of every variable, predefined and user-defined. This command is available in a session, job or program, or in BREAK. Pressing [Break] has no effect on this command.
SETVAR HPPROMPT "!!hpuser.!!hpaccount" SETVAR HPPATH "PUB.SYS, ., /SYS/PUB"
Commands: DELETEVAR, INPUT, SETJCW, SHOWJCW, SHOWVAR; see also VARIABLES and FUNCTIONS Manuals : Appendix A, "Predefined Variables in MPE/iX" and Appendix B, "Expression Evaluator Functions" in MPE/iX Commands Reference Manual (32650-90003) Performing System Operation Tasks (32650-90137) Back to Main Index