LET [ HP TRANSACT Quick Reference Guide ] MPE/iX 5.5 Documentation
HP TRANSACT Quick Reference Guide
LET
LET destination-variable =
arithmetic-expression[,ERROR=label[([item-name])]];
DESTINATIONS
(item-name[(subscript)])
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]...[operator sourcen]
SOURCES
(item-name[(subscript)])
number
LINE
OFFSET(item-name)
PAGE
PLINE
STATUS
TLINE
function
FUNCTIONS
ASCII(item-name[(subscript)]|"character-string")
LENGTH(item-name[(subscript)]|"character-string")
LN(item-name[(subscript)]|number)
LOG(item-name[(subscript)]|number)
POSITION(item-name1[(subscript)]|"character-string",
item-name2[(subscript)]|"character-string")
SQRT(item-name[(subscript)]|number)
VALUE(item-name[(subscript)]|"character-string")
OPERATORS
+
-
*
/
//
**
Example
LET (ONHAND)=(ONHAND)-(QTY);
LET (S-LENGTH) = LENGTH(STRING);
MPE/iX 5.5 Documentation