
Chapter 3 123
Command Definitions C-E
CALC
Do not use the FINFO function with the CALC command for remote files. It ignores their
existence and returns incorrect information.
Use
This command is available in a session, job, program, or in BREAK. Pressing Break
terminates the INPUT( ) function.
Example
The result of CALC sample depends on the value entered for sample and on the type of
the value, as shown in Table 3-2
Table 3-2 Results of CALC
Related Information
Commands DELETEVAR, ELSEIF, IF, SETJCW, SETVAR, SHOWJCW, SHOWVAR, WHILE
Manuals Appendix B, "Expression Evaluator Functions"
Command Interpreter Access and Variables Programmer's Guide
sample Displayed (HPRESULT) Type
5*10-7 43, $2B, %53 Integer
LEN("abc") 3, $3, %3 Integer
UPS("Abc") ABC String
1=1 TRUE Boolean
MAX(1,0,abs(-12),10) 12, $c, %14 Integer