Go to LeighWeb Home Page            

Back To LeighWeb Mainframe Utilities Page

View the module associated with this documentation

 The CALCULAT CLIST allows you to pass an arithmatic expression and then
 CALCULAT returns a message with the evaluation of the arithmatic expression.

 To use it, you type TSO CALCULAT xxxxxx where xxxxxx is some equation.  It is
 important that you do not have any spaces in your equation.  Consequently, TSO
 CALCULAT 1 + 1 would be incorrect, but TSO CALCULAT 1+1 would be correct and
 would return a message like "1+1 = 2".

 Obviously, CALCULAT can handle a little equations a bit more complex than that.
 You may use parentheses and the standard add, subtract, mulitply, and divide
 symbols (+, - , *, /).