MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Simple REXX compute function

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
akshaj
Beginner


Joined: 30 Dec 2002
Posts: 12
Topics: 8

PostPosted: Tue Dec 31, 2002 9:24 am    Post subject: Simple REXX compute function Reply with quote

/*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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group