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
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm


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