IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top