Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need REXX pgm to add two numeric values of pic 9(23) each!!

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
softwareengineer

New User


Joined: 24 Aug 2005
Posts: 24
Location: Hyderabad

PostPosted: Thu Feb 22, 2007 11:28 am    Post subject: Need REXX pgm to add two numeric values of pic 9(23) each!!
Reply with quote

Hi,
I donno REXX much. But I need a REXX prg for below logic:
1) add two numeric values( let say A & B) of pic 9(23) each & to store the field in another variable ( let say C pic 9(23))
2) Divide the variable 'C' value with 11 and to store the last digit of remainder in one variable (D)?

Please help me giving this logic.... atleast the logic 1.....
It wud be great if u cud entire logic 1 & 2.. and how to call/use this REXX module in my cobol program.
Back to top
View user's profile Send private message

manihcl85
Warnings : 1

New User


Joined: 11 Jan 2007
Posts: 52
Location: chennai

PostPosted: Fri Feb 23, 2007 11:06 am    Post subject:
Reply with quote

Actually variable type is not neccesary in rexx u can directly use as below.

Code:

/*REXX*/
VARA
VARB
VARC = VARA + VARB
SAY VARC


if i am wrong please give me the detailed input that where u will get a and b whether from file or run time or from a file and what u want to do with output going to display or write in a file.

Regards,
Mani.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us