Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us