akshaj Beginner
Joined: 30 Dec 2002 Posts: 12 Topics: 8
|
Posted: Tue Dec 31, 2002 9:24 am Post subject: Simple REXX compute function |
|
|
/*REXX Compute a formula by REXX rules. e.g TSO COMPUTE d2x(111111)
/* Example -- COMMAND ===> TSO COMPUTE d2x(111111)
parse Arg Formula
Interpret 'Result = ' Formula
If SYSVAR('SYSISPF') = 'ACTIVE' /* ISPF Environment?
Then Do /* Display as msg if so
ZEDSMSG = Result/* short message upper right */
ZEDLMSG = Formula '==>' Result /* use help to see long message
'ISPEXEC SETMSG MSG(ISRZ001)'
End
Else Say Formula '==>' Result /* Not ISPF, write to terminal
**
Akshaj |
|