LET [ HP TRANSACT Quick Reference Guide ] MPE/iX 5.0 Documentation
HP TRANSACT Quick Reference Guide
LET
LET destination-variable =
arithmetic-expression[,ERROR=label[([item-name])]];
DESTINATIONS
(item-name)
LINE - Value of the line counter
OFFSET(item-name) - The offset of a child item
PAGE - Value of the page counter
PLINE - Line counter for printer output
STATUS - Value of the status register
TLINE - Line counter for terminal output
ARITHMETIC EXPRESSION
[-]source1 [operator source2]
OPERATORS
+
-
*
/
//
**
FUNCTIONS
ASCII(item-name|value)
LENGTH(item-name|value)
LN(item-name|value)
LOG(item-name|value)[REV BEG]
POSITION(item-name|value, item-name|value);
SQRT(item-name|value)[REV END]
VALUE(item-name|value)
Example[REV BEG]
LET (ONHAND)=(ONHAND)-(QTY);
LET (S-LENGTH) = LENGTH(STRING);
[REV END]
MPE/iX 5.0 Documentation